Commit Graph

203 Commits

Author SHA1 Message Date
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
Peter Westwood a9c7730610 Allow for custom ordering in get_terms(). Fixes #7539 props DD32.
git-svn-id: https://develop.svn.wordpress.org/trunk@11250 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-10 07:57:07 +00:00
Mark Jaquith 8d6cb67233 esc_js(). Shorter, follows new escaping naming convention.
git-svn-id: https://develop.svn.wordpress.org/trunk@11245 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-09 07:27:22 +00:00
Ryan Boren a0f1a1c89b Return ref. Props nbachiyski. fixes #9109
git-svn-id: https://develop.svn.wordpress.org/trunk@11216 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-06 05:03:59 +00:00
Mark Jaquith c638e8d8de _a(), _ea(), _xa(), attr() are now esc_attr__(), esc_attr_e(), esc_attr_x(), esc_attr() -- still short, but less cryptic. see #9650
git-svn-id: https://develop.svn.wordpress.org/trunk@11204 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 19:43:53 +00:00
Andrew Ozz 3bf18aa189 Banishing ASCII quotes and apostrophes, props demetris, fixes #9655
git-svn-id: https://develop.svn.wordpress.org/trunk@11190 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 04:28:05 +00:00
Ryan Boren 71fbf68dee strip slashes from term before prepare(). Props jhodgdon. see #6593
git-svn-id: https://develop.svn.wordpress.org/trunk@11153 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-01 22:05:04 +00:00
Ryan Boren d0b30bee2a Trim term before checking if it already exists. Props jhodgdon. fixes #9397
git-svn-id: https://develop.svn.wordpress.org/trunk@11151 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-01 20:59:14 +00:00
Ryan Boren 1f47d7d591 Fix registration of default taxonomies so that proper rewrite rules are written.
git-svn-id: https://develop.svn.wordpress.org/trunk@11141 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-30 19:05:32 +00:00
Ryan Boren c50d877687 Fix category search pagination. Fix caching of empty term results. Props Denis-de-Bernardy. fixes #8632
git-svn-id: https://develop.svn.wordpress.org/trunk@11140 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-30 16:51:45 +00:00
Ryan Boren b1bf7685ce Allow plugins to override default taxonomies. Props Denis-de-Bernardy. fixes #9647
git-svn-id: https://develop.svn.wordpress.org/trunk@11129 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-29 20:25:30 +00:00
Ryan Boren 66c017857a Allow taxonomy registration before init. Props arena. fixes #9647
git-svn-id: https://develop.svn.wordpress.org/trunk@11122 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-29 16:40:36 +00:00
Ryan Boren 0537f5af69 get_term_children phpdoc and var naming improvements. Props simonwheatley. fixes #9667
git-svn-id: https://develop.svn.wordpress.org/trunk@11115 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 19:49:21 +00:00