Ryan Boren
|
f63662aa82
|
Count only published posts when updating term counts. Fire term count updates on transition_post_status. Props joehoyle. fixes #17548
git-svn-id: https://develop.svn.wordpress.org/trunk@18783 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-26 22:24:46 +00:00 |
Andrew Nacin
|
fb58d06f1c
|
Rename 'Post Tags' to 'Tags'. props scribu, fixes #17683.
git-svn-id: https://develop.svn.wordpress.org/trunk@18661 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-11 17:52:46 +00:00 |
Jon Cave
|
82c0f09c09
|
Fix typos in documentation (wp-includes/[i-z]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18639 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-05 19:08:15 +00:00 |
Ryan Boren
|
ad3b0cacc4
|
Support fields = slugs in wp_get_object_terms(). Props lancewillett, SergeyBiryukov. fixes #15835
git-svn-id: https://develop.svn.wordpress.org/trunk@18603 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-08-25 18:49:46 +00:00 |
Peter Westwood
|
89a6ae387e
|
Optimise get_term to not query for term_id = 0. Also improve the prepared query to use %d for the term_id.
Fixes #18076 props mdawaffe.
git-svn-id: https://develop.svn.wordpress.org/trunk@18591 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-08-24 10:39:52 +00:00 |
Ryan Boren
|
bb7af108f5
|
Sanitize order and orderby in get_terms()
git-svn-id: https://develop.svn.wordpress.org/trunk@18344 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-27 15:45:12 +00:00 |
Ryan Boren
|
46d96c7704
|
Bring out the pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@18254 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-10 23:01:45 +00:00 |
Andrew Nacin
|
24d38bc521
|
Admin Bar: Add View Site/Dashboard links, 'View X' links in the admin, 'View' action link for terms. New custom taxonomy string: view_item, defaulting to 'View Tag' and View Category'. fixes #17705.
git-svn-id: https://develop.svn.wordpress.org/trunk@18194 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-08 16:49:27 +00:00 |
Ryan Boren
|
30d46abd66
|
Add cache_domain argument to get_terms() to allow caching to a unique set of cache buckets. Useful when taxonomy queries have been modified via filters and need their own cache space. Props mfields. fixes #13318
git-svn-id: https://develop.svn.wordpress.org/trunk@18128 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-03 15:24:14 +00:00 |
Ryan Boren
|
ae5e08e457
|
Prepare some LIKEs
git-svn-id: https://develop.svn.wordpress.org/trunk@17997 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-22 23:22:59 +00:00 |
Mark Jaquith
|
a957c38eca
|
Use the presence of manually set tax_base, not category_base, to determine whether tags use with_front to craft URLs. fixes #17308
git-svn-id: https://develop.svn.wordpress.org/trunk@17789 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-02 21:34:33 +00:00 |
Dion Hulse
|
649a1fad73
|
Prevent $taxonony->object_type containing duplicate values. Initial patch props kevinB. Fixes #16951
git-svn-id: https://develop.svn.wordpress.org/trunk@17688 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-23 09:27:37 +00:00 |
Ryan Boren
|
ecfd3d4608
|
Handle term intersection requests containg inexistent terms. Props scribu. fixes #17194
git-svn-id: https://develop.svn.wordpress.org/trunk@17686 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-22 19:09:48 +00:00 |
Ryan Boren
|
0f3921f771
|
More efficient term intersection query. Props tigertech. see #16706
git-svn-id: https://develop.svn.wordpress.org/trunk@17652 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-18 20:38:59 +00:00 |
Ryan Boren
|
52cbde8270
|
Return false instead of WP_Error from get_term_by() if the term does not exist. Makes fetching a term by id consistent with slug and name. Props hakre. fixes #16464 #16717 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17526 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-22 20:06:38 +00:00 |
Mark Jaquith
|
c15c6f2b23
|
Prevent double index.php preprend on PATHINFO custom taxonomy permalinks. Proper use of with_front. props greuben. fixes #16918. fixes #16622. see #15813. see #12659. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17512 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-09 05:18:45 +00:00 |
Mark Jaquith
|
1ca947074d
|
Revert to the cat=X permalinks from 3.0 and earlier. props dd32. fixes #16644 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17494 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-02 17:29:11 +00:00 |
Ryan Boren
|
a57952b5c9
|
Don't allow passing slugs to get_tag_link() and get_category_link(); they are too ambiguous. Restore WP_Error return to get_term_link(). fixes #16521 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17443 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-02-10 21:48:40 +00:00 |
Ryan Boren
|
81a1787248
|
Return empty strings instead of WP_Errro from get_category_link(), get_term_link(), and get_tag_link() when passed an invalid term. Clarify phpdoc. Props nacin. fixes #16521 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@17437 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-02-10 20:17:54 +00:00 |
Andrew Nacin
|
861b32c855
|
Add context to 'Format' string. props scribu, SergeyBiryukov, fixes #16423 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@17372 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-31 12:18:57 +00:00 |
Mark Jaquith
|
daecb5d36d
|
Revert [16832]. see #9591. fixes #16282
git-svn-id: https://develop.svn.wordpress.org/trunk@17357 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-24 06:26:38 +00:00 |
Andrew Nacin
|
b5d92c4354
|
Correct the @return for get_term_link. It always has been able to return WP_Error. props SergeyBiryukov, see #16282.
git-svn-id: https://develop.svn.wordpress.org/trunk@17341 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-20 23:36:42 +00:00 |
Andrew Nacin
|
87221c5a85
|
Give the format taxonomy a name. props SergeyBiryukov, see #16172.
git-svn-id: https://develop.svn.wordpress.org/trunk@17261 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-11 22:11:32 +00:00 |
Ryan Boren
|
f59c869e62
|
category__and, tag__and, tag_slug__in, tag_slug__and support. fixes #16157
git-svn-id: https://develop.svn.wordpress.org/trunk@17244 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-09 16:19:48 +00:00 |
Andrew Nacin
|
eb5b299e70
|
Don't check for post format support when registering the post format taxonomy. fixes #16146.
git-svn-id: https://develop.svn.wordpress.org/trunk@17240 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-07 21:23:52 +00:00 |
Ryan Boren
|
eba71eb7c0
|
Bring out the shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@17228 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-06 04:11:14 +00:00 |
Ryan Boren
|
de1f10c283
|
Don't sanitize_key() the post type so that colons aren't stripped from attachment types. Props nacin. fixes #15982
git-svn-id: https://develop.svn.wordpress.org/trunk@17155 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-26 22:00:50 +00:00 |
Ryan Boren
|
a748e507e5
|
link_notes and term_description escaping fixes. Props garyc40. fixes #15454
git-svn-id: https://develop.svn.wordpress.org/trunk@17146 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-25 22:45:09 +00:00 |
Andrew Nacin
|
537d726a7c
|
Make get_the_taxonomies() take an array of arguments. props scribu, fixes #14740.
git-svn-id: https://develop.svn.wordpress.org/trunk@17028 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-17 16:33:16 +00:00 |
Ryan Boren
|
748f5f0154
|
phpdoc notation fixes. Props demetris. fixes #15852
git-svn-id: https://develop.svn.wordpress.org/trunk@17009 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-16 22:46:13 +00:00 |
Ryan Boren
|
c1e26ef82c
|
Add like_escape() to some queries. fixes #15764
git-svn-id: https://develop.svn.wordpress.org/trunk@16999 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-16 14:22:41 +00:00 |
Mark Jaquith
|
595bc10419
|
Add WP Rewrite root to front of add_permastruct() call when adding a taxonomy. fixes #15813
git-svn-id: https://develop.svn.wordpress.org/trunk@16918 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-14 16:28:16 +00:00 |
Ryan Boren
|
6dc2d07bc4
|
Pink trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@16900 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-13 21:21:50 +00:00 |
scribu
|
ab5cd7a4f5
|
Inline docs for WP_Tax_Query. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16854 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-10 08:20:46 +00:00 |
scribu
|
77f5f54ff7
|
Correct relation var and PHP4 constructor. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16850 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-09 19:36:33 +00:00 |
scribu
|
85a176fe8f
|
Introduce WP_Tax_Query. Fix canonical redirects in the process. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16849 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-09 19:29:21 +00:00 |
scribu
|
1527d28dca
|
False advertising is bad. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16845 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-09 17:19:23 +00:00 |
scribu
|
a5cb537970
|
Set tax query defaults earlier, for notice prevention and convenience. See #15752
git-svn-id: https://develop.svn.wordpress.org/trunk@16843 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-09 17:05:40 +00:00 |
Andrew Nacin
|
abd3871510
|
Use correct query var. see #15378.
git-svn-id: https://develop.svn.wordpress.org/trunk@16837 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-09 14:23:54 +00:00 |
scribu
|
005b2e5be1
|
Make get_term_by() use sanitize_title_for_query() too. See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@16832 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-09 10:05:19 +00:00 |
Ryan Boren
|
00356f8e4a
|
Use santize_key() in more places. Props WraithKenny. fixes #14910
git-svn-id: https://develop.svn.wordpress.org/trunk@16822 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-08 21:32:19 +00:00 |
Andrew Nacin
|
96e0e3b82f
|
Post format indexes. First pass. see #15378.
git-svn-id: https://develop.svn.wordpress.org/trunk@16705 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-03 10:13:17 +00:00 |
Peter Westwood
|
b0b22ceb97
|
Clean the cache when deleting a term. Fixes #15651
git-svn-id: https://develop.svn.wordpress.org/trunk@16691 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-02 17:10:02 +00:00 |
scribu
|
e41d9bc392
|
Get rid of misplaced 'taxonomy_template' filter. Fixes #14740
git-svn-id: https://develop.svn.wordpress.org/trunk@16665 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-01 20:16:24 +00:00 |
scribu
|
4fd10f33f0
|
Introduce 'relation' operator between tax queries. Props Otto42 for initial patch. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16555 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-23 20:22:27 +00:00 |
Andrew Nacin
|
e8dd42ce2a
|
Revert [15688], [15689], [15691]. Try again in 3.2. see #14966.
git-svn-id: https://develop.svn.wordpress.org/trunk@16535 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-22 17:17:26 +00:00 |
scribu
|
3c7fb2fb3b
|
Update get_tax_sql() docblock. See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@16523 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-21 14:09:01 +00:00 |
scribu
|
a825250771
|
Fix logic for when excluding a non-existant term. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16512 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-20 21:28:50 +00:00 |
Ryan Boren
|
75453e5e2d
|
If the queried term does not exist make sure no posts are returned in the query rather than falling through to querying all posts. Fixes 404s when querying cats that do not exist. see #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16511 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-20 21:10:20 +00:00 |
Mark Jaquith
|
29b90f079d
|
Exclude term exclusions even if they are also inclusions. props foofy, scribu. see #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16467 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-18 19:04:47 +00:00 |