Commit Graph

215 Commits

Author SHA1 Message Date
Dion Hulse c7be408d4a Introduce assign_cap for Taxonomies, Defaults to 'edit_posts'. Allows for Authors/Contributors to tag/categorise their posts. See #12035
git-svn-id: https://develop.svn.wordpress.org/trunk@13289 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-22 08:36:32 +00:00
Ryan Boren 6c64fffe3a Use nav_menu as the taxonomy name and nav_menu_item as the post type. Set object_id in postmeta. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13284 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-21 18:24:41 +00:00
Dion Hulse 9d3ea3bbae add show_tagcloud to Taxonomy registration & add basic PHPDoc, See #11612
git-svn-id: https://develop.svn.wordpress.org/trunk@13277 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-21 02:55:07 +00:00
Ryan Boren f24e88359e Trim trailing whites
git-svn-id: https://develop.svn.wordpress.org/trunk@13268 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-21 00:03:42 +00:00
Ryan Boren 123b6244e3 Remove custom post states. Register taxonomy against menu_item post type. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13260 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 22:35:39 +00:00
Ryan Boren 8c3feb431b Don't show menu for menu taxonomy. see #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13259 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 22:24:47 +00:00
Ryan Boren 63238b1667 Set taxonomy label if none given.
git-svn-id: https://develop.svn.wordpress.org/trunk@13258 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 22:21:20 +00:00
Ron Rennick f97af13505 introduce custom menus, props jeffikus, See #11817
git-svn-id: https://develop.svn.wordpress.org/trunk@13257 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-20 21:57:43 +00:00
Dion Hulse 7cdc6568d0 First pass at giving taxonomies a show_ui param. See #10773
git-svn-id: https://develop.svn.wordpress.org/trunk@13216 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-19 10:21:29 +00:00
Dion Hulse 04a67c293e 2nd pass at Taxonomy Term canonicalisation. Fix get_term_link() to expect null|false||WP_Error failure from get_term() family. See #12245, #8948
git-svn-id: https://develop.svn.wordpress.org/trunk@13170 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-16 09:08:26 +00:00
Dion Hulse de88d303fa Prevent Terms from being created in multiple taxonomies. If a slug is provided by the user, error out if it exists, else make the auto slug unique. See #11838
git-svn-id: https://develop.svn.wordpress.org/trunk@13087 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 05:52:27 +00:00
Dion Hulse d8006b5939 Introduce Custom Taxonomies Translation strings, Correctly identifies the taxonomy in the Strings of the edit pages. See #11838
git-svn-id: https://develop.svn.wordpress.org/trunk@13083 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 04:18:33 +00:00
Dion Hulse 5aacc9a839 $term is an array not object, Fixes Notice on duplicate term checking. See #11838
git-svn-id: https://develop.svn.wordpress.org/trunk@13010 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-07 06:51:05 +00:00
Ryan Boren 61dcf802c7 Change back to an option so that it is always there and regenerate it after cleaning the cache instead of waiting for the next page load. Don't clean taxonomy wide caches when just updating object counts to avoid cleaning when updating a post.
git-svn-id: https://develop.svn.wordpress.org/trunk@12881 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-27 19:42:23 +00:00
Dion Hulse d1a8b1bdb6 Remove accidental capability testing code. See #12035
git-svn-id: https://develop.svn.wordpress.org/trunk@12834 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 11:37:25 +00:00
Dion Hulse 8c6e15b457 First scratch at Taxonomy Capabilities. See #12035
git-svn-id: https://develop.svn.wordpress.org/trunk@12833 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-26 11:32:04 +00:00
Dion Hulse bc3fbede7f Merge Categories/Hierarchical taxonomies into edit-tags.php. See #11838
git-svn-id: https://develop.svn.wordpress.org/trunk@12818 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-24 11:00:27 +00:00
Ryan Boren e5a67cebd5 Create metaboxes for hierarchical taxonomies. Props prettyboymp. fixes #10122
git-svn-id: https://develop.svn.wordpress.org/trunk@12798 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-22 19:30:05 +00:00
Ryan Boren b9457ce8ff Add flag to taxonomy registration allowing permalinks to be prepended with front, or not. Props prettyboymp. fixes #11449
git-svn-id: https://develop.svn.wordpress.org/trunk@12791 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-21 22:25:16 +00:00
Ryan Boren 8ef8b7bad5 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@12733 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 22:11:12 +00:00
Ryan Boren 85de154ee3 Support id=>parent in fields arg of get_terms. Returns array of parent ids keyed by the id of the child term.
git-svn-id: https://develop.svn.wordpress.org/trunk@12729 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-15 17:40:37 +00:00
Ryan Boren 60b50434bd Make _get_term_hierarchy() query more efficient.
git-svn-id: https://develop.svn.wordpress.org/trunk@12711 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-12 20:12:04 +00:00
Ryan Boren 37d1acae71 Mainstream things that don't need to be multisite only. Formatting cleanups. see #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12699 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-11 22:23:58 +00:00
Ron Rennick 8b4fbdb503 merge in multisite login, wp-includes, See #11644
git-svn-id: https://develop.svn.wordpress.org/trunk@12697 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-11 21:49:40 +00:00
Ryan Boren 32bfcc6aa8 Convert taxonomy children cache into a transient. fixes #11866
git-svn-id: https://develop.svn.wordpress.org/trunk@12693 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-11 18:53:52 +00:00
Peter Westwood b2360778ee Add support to get_terms() to allow 'include' & 'exclude' args to be arrays(). Fixes #11076 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@12658 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-08 08:44:45 +00:00
Ryan Boren 974b6c1ce4 Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008
git-svn-id: https://develop.svn.wordpress.org/trunk@12598 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 17:23:29 +00:00
Ryan Boren 9ef2cb198f More custom post type support. Props scribu. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12597 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-04 16:58:43 +00:00
Ryan Boren dcd3604d90 Use array calling style. Props Denis-de-Bernardy. see #6647
git-svn-id: https://develop.svn.wordpress.org/trunk@12515 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:31:02 +00:00
Ryan Boren af9fafc779 Cleanup clean_term_cache(). Props Denis-de-Bernardy. see #11530
git-svn-id: https://develop.svn.wordpress.org/trunk@12510 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 14:37:21 +00:00
Ryan Boren 1ea0e34786 Pass taxonomy to created, edited, create, and edit actions. Props Denis-de-Bernardy. fixes #11429
git-svn-id: https://develop.svn.wordpress.org/trunk@12397 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-14 16:46:05 +00:00
Peter Westwood 7a0fb0316f Pass the old term_taxonomy ids to the action in set_object_terms so plugins know what was before. Fixes #10962 props simonwheatley.
git-svn-id: https://develop.svn.wordpress.org/trunk@12261 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-22 22:33:45 +00:00
Ryan Boren 3430acef10 Use correct var name
git-svn-id: https://develop.svn.wordpress.org/trunk@12243 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 17:32:56 +00:00
Ryan Boren 446d22adcd Fix double slashing. Props scribu. fixes #11061
git-svn-id: https://develop.svn.wordpress.org/trunk@12241 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-20 14:23:41 +00:00
Ryan Boren dd4f87da0d Fix custom taxonomy term links when using non-pretty permalinks. Props bookchiq. fixes #11179
git-svn-id: https://develop.svn.wordpress.org/trunk@12229 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-19 22:41:53 +00:00
Ryan Boren 761aac294c Return null if no term queried. fixes #11112
git-svn-id: https://develop.svn.wordpress.org/trunk@12200 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-17 20:51:32 +00:00
Ryan Boren bb43e36418 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11971 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-24 17:19:13 +00:00
Ryan Boren 851b83207c Actions for taxonomy updates. Props Demitrious Kelly. fixes #10750
git-svn-id: https://develop.svn.wordpress.org/trunk@11941 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-17 14:03:57 +00:00
Ryan Boren 7a1a28e91f Fix parent=0 queries. Props Denis-de-Bernardy 107 minutes ago. . fixes #9960
git-svn-id: https://develop.svn.wordpress.org/trunk@11476 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-28 18:06:08 +00:00
Ryan Boren 813973d04f Fix default orderby for tt_id query. see #9937
git-svn-id: https://develop.svn.wordpress.org/trunk@11469 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-27 17:09:19 +00:00
Ryan Boren e38c2c7c07 Fix default orderby for tt_id query. see #9937
git-svn-id: https://develop.svn.wordpress.org/trunk@11468 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-27 17:00:30 +00:00
Ryan Boren 4b4c9e966e Add orderby = none option to wp_get_object_terms(). Props vladimir_kolesnikov. fixes #9937
git-svn-id: https://develop.svn.wordpress.org/trunk@11457 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-25 18:18:06 +00:00
Ryan Boren e12c642c54 Trim tailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11450 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 23:47:49 +00:00
Andrew Ozz 8017f27e5a Make get_terms() orderby case insensitive, props DD32, fixes #9906
git-svn-id: https://develop.svn.wordpress.org/trunk@11428 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-22 12:29:32 +00:00
Ryan Boren 3788f58c9e Revert [11263]. Busted several themes. see #9323
git-svn-id: https://develop.svn.wordpress.org/trunk@11324 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-14 04:09:01 +00:00
Ryan Boren ed05a1e8f8 Accept only IDs for get_term_link(). Prop filosofo. fixes #9323
git-svn-id: https://develop.svn.wordpress.org/trunk@11263 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 16:37:42 +00:00
Ryan Boren 00268d9665 Allow use of _pad_term_counts for all hierarhcical taxonomies. Props mgsisk, Denis-de-Bernardy. fixes #8350
git-svn-id: https://develop.svn.wordpress.org/trunk@11260 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 05:01:12 +00:00
Ryan Boren c09e996228 Pass IDs, not objects, to get_category_link(). fixes #9784
git-svn-id: https://develop.svn.wordpress.org/trunk@11257 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 04:45:39 +00:00
Peter Westwood 9b67652231 Fix typo in [11253] fixes #8704 props Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@11255 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-10 09:25:43 +00:00
Peter Westwood a08a8c6db9 Add a filter to the result of wp_get_object_terms(). Fixes #8704 props Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@11253 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-10 09:11:58 +00:00