scribu
|
6401205f36
|
Don't do any taxonomy stuff if is_singular. See #15487
git-svn-id: https://develop.svn.wordpress.org/trunk@16515 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-20 21:51:21 +00:00 |
|
Ryan Boren
|
f3e3c03abe
|
array_unique() category__in and category__not_in to eliminate dupes from multiple runs of parse_tax_query(). Fixes canonical redirects for cat, category__in, and category__not_in requests. see #12891 #15487
git-svn-id: https://develop.svn.wordpress.org/trunk@16513 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-20 21:43:19 +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 |
|
scribu
|
3e8a8c96cf
|
Remove debug cruft from [16505]. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16506 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-20 13:48:24 +00:00 |
|
scribu
|
6020138317
|
Don't set post_type to 'any' for category and tag queries. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16505 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-20 13:39:07 +00:00 |
|
Mark Jaquith
|
103bde3e19
|
Do not set is_category/is_tax/is_tax for is_singular requests. props mtekk. fixes #15487
git-svn-id: https://develop.svn.wordpress.org/trunk@16495 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-19 19:25:53 +00:00 |
|
scribu
|
90de63b3ad
|
Force GROUP BY when there's a tax query. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16482 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-19 09:17:59 +00:00 |
|
Andrew Nacin
|
ba37b82b10
|
Allow is_feed() to drill down the feed being checked. props johnbillion for initial patch, fixes #15460.
git-svn-id: https://develop.svn.wordpress.org/trunk@16447 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-18 03:19:08 +00:00 |
|
Ryan Boren
|
4b33a0e9c4
|
Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@16438 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-17 18:47:34 +00:00 |
|
scribu
|
1298668d9a
|
Re-introduce ->tax_query as a read-only var. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16414 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-17 02:04:08 +00:00 |
|
scribu
|
92fae02550
|
Optimize get_tax_sql(). See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16413 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-17 01:56:01 +00:00 |
|
scribu
|
9242c290b3
|
Revert [16402] outright. Causes issues with themes. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16404 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-16 16:36:20 +00:00 |
|
scribu
|
93b63b771c
|
Don't pollute the 'tax_query' query var. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16402 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-16 16:22:09 +00:00 |
|
scribu
|
ecad0a9016
|
Revert [16384]. See #15433
git-svn-id: https://develop.svn.wordpress.org/trunk@16385 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-15 15:23:04 +00:00 |
|
scribu
|
4c4e5ed0df
|
Ignore 'name' qv if 'p' qv is set. Fixes #15433
git-svn-id: https://develop.svn.wordpress.org/trunk@16384 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-15 13:33:16 +00:00 |
|
scribu
|
e72a75d2d6
|
Set 'taxonomy' and 'term' query vars for back-compat. Fixes #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@16381 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-15 10:51:39 +00:00 |
|
scribu
|
ed4788b696
|
Re-parse tax query just before calling get_tax_sql(). Fixes #15161
git-svn-id: https://develop.svn.wordpress.org/trunk@16380 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-15 10:11:25 +00:00 |
|
scribu
|
c38380fd8f
|
Update doc for WP_Query::post. Fixes #15105
git-svn-id: https://develop.svn.wordpress.org/trunk@16360 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-13 23:32:18 +00:00 |
|
scribu
|
a8160ed916
|
Kill WP_Object_Query. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16353 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-13 18:32:43 +00:00 |
|
scribu
|
6daedd550c
|
Revert most of [16018]. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16352 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-13 18:26:15 +00:00 |
|
Ryan Boren
|
8ad934c85d
|
Prevent stomping of global. Props prettyboymp. fixes #13945
git-svn-id: https://develop.svn.wordpress.org/trunk@16303 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-11 16:22:18 +00:00 |
|
scribu
|
f337bb1b86
|
Add context to get_meta_sql(). See #15018
git-svn-id: https://develop.svn.wordpress.org/trunk@16286 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-11 10:06:05 +00:00 |
|
Andrew Nacin
|
d50013b957
|
Ensure we have a valid post type object when checking for has_archive. props filosofo, fixes #15364.
git-svn-id: https://develop.svn.wordpress.org/trunk@16276 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-10 16:42:59 +00:00 |
|
scribu
|
83738d47f4
|
Make get_tax_sql() a standalone function. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16267 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-09 23:30:35 +00:00 |
|
scribu
|
c0be4fafcf
|
Make get_meta_sql() a standalone function. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16266 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-09 23:22:13 +00:00 |
|
scribu
|
5a2a86f84a
|
Allow mix of 'taxonomy' => 'foo', 'term' => 'bar' and 'foo2' => 'bar2'. Props filosofo. Fixes #15363
git-svn-id: https://develop.svn.wordpress.org/trunk@16259 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-09 16:45:51 +00:00 |
|
scribu
|
4754dbd2c6
|
Set 'operator' field. Fixes #15350. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16258 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-09 12:27:03 +00:00 |
|
scribu
|
e07b7bbdc5
|
Use wp_basename() in WP_Query too. See #11887
git-svn-id: https://develop.svn.wordpress.org/trunk@16155 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-02 17:28:28 +00:00 |
|
scribu
|
033dc3afa2
|
Just pass meta type to get_meta_sql(). See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16143 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-01 20:34:54 +00:00 |
|
scribu
|
33e3ef1367
|
Remove check on unexistant $ids var in WP_Query::get_posts. Props Utkarsh. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@16116 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-31 11:28:49 +00:00 |
|
Ryan Boren
|
af17458ed9
|
get_queried_obecjt() and get_queried_object_id(). Props filosofo. fixes #14015
git-svn-id: https://develop.svn.wordpress.org/trunk@16091 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-29 20:48:54 +00:00 |
|
scribu
|
0ba17a703a
|
Make get_meta_sql() return associative array. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16053 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-28 17:02:37 +00:00 |
|
scribu
|
174c0acfb4
|
Move get() and set() methods from WP_Query to WP_Object_Query. See #15032
git-svn-id: https://develop.svn.wordpress.org/trunk@16018 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-27 18:16:52 +00:00 |
|
scribu
|
1c9a241148
|
Introduce 'fields' query var to WP_Query. See #14777
git-svn-id: https://develop.svn.wordpress.org/trunk@15982 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-26 19:01:55 +00:00 |
|
Andrew Nacin
|
4738e732ae
|
Remove dead arguments. see [15937], see #13818, props dd32.
git-svn-id: https://develop.svn.wordpress.org/trunk@15942 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-24 03:27:01 +00:00 |
|
Andrew Nacin
|
6eb9fbbd39
|
Remove post_type params from is_archive(). use is_post_type_archive() for full context. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15937 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-23 19:20:47 +00:00 |
|
Andrew Nacin
|
6d7366d5fc
|
Move the CPT archive flag outside of the rewrite argument, into its own has_archive. has_archive controls more than just URL rewriting, it also handles whether ?post_type= is treated as a CPT archive. feeds remain in rewrite as ?feed= would work regardless. see #13818.
git-svn-id: https://develop.svn.wordpress.org/trunk@15936 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-23 18:29:22 +00:00 |
|
Andrew Nacin
|
4d0164db91
|
Remove some capability_type code in WP_Query. Only build faux caps if we're querying for multiple post types or if the post type object can't be found. see #14122.
git-svn-id: https://develop.svn.wordpress.org/trunk@15935 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-23 18:16:41 +00:00 |
|
scribu
|
ed9a39abab
|
Introduce sanitize_title_for_query(). See #9591
git-svn-id: https://develop.svn.wordpress.org/trunk@15929 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-23 12:55:55 +00:00 |
|
scribu
|
3081a12de2
|
Introduce _qv_basename() and apply it to hierarchical taxonomies. See #9591.
git-svn-id: https://develop.svn.wordpress.org/trunk@15923 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-22 22:54:05 +00:00 |
|
scribu
|
890c0ead1c
|
Remove misplaced code in WP_Query::parse_tax_query(). See #12659
git-svn-id: https://develop.svn.wordpress.org/trunk@15921 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-22 21:17:09 +00:00 |
|
scribu
|
8315655230
|
Revert accidental changes to WP_Query made in [15887]. See #14163
git-svn-id: https://develop.svn.wordpress.org/trunk@15888 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-21 14:06:52 +00:00 |
|
scribu
|
a3ef15ffc0
|
Allow filtering comments by user_id via URL. Props neoxx. Fixes #14163
git-svn-id: https://develop.svn.wordpress.org/trunk@15887 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-21 14:03:25 +00:00 |
|
scribu
|
188f3458f9
|
Fix tax=term1+term2 queries. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15874 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-20 19:00:57 +00:00 |
|
scribu
|
2b08f69b50
|
Fix 'taxonomy' and 'term' query var logic. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15860 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-20 12:07:23 +00:00 |
|
scribu
|
6b80426cfa
|
Re-add the ability to filter by 'taxonomy' and 'term' query vars. Fixes #13582. See #12891
git-svn-id: https://develop.svn.wordpress.org/trunk@15850 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-19 14:41:30 +00:00 |
|
Dion Hulse
|
1027248cee
|
Limit wp_old_slug_redirect() to redirecting to only posts of the same post_type kind. See #15140
git-svn-id: https://develop.svn.wordpress.org/trunk@15848 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-19 10:27:34 +00:00 |
|
Andrew Nacin
|
fb4e38b0e7
|
Pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@15843 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-19 07:48:22 +00:00 |
|
Dion Hulse
|
5a1373ddd6
|
Use $wpdb->prepare in wp_old_slug_redirect(). See #15140
git-svn-id: https://develop.svn.wordpress.org/trunk@15832 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-18 11:44:19 +00:00 |
|