Ryan Boren
|
a4ce5b114b
|
is_* WP_Query methods. Props mdawaffe. fixes #14494
git-svn-id: https://develop.svn.wordpress.org/trunk@15531 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-08-25 18:05:33 +00:00 |
|
scribu
|
6d510588aa
|
Safer hierarchical display check. Fixes #14600; See #14579
git-svn-id: https://develop.svn.wordpress.org/trunk@15501 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-08-16 01:36:21 +00:00 |
|
Andrew Nacin
|
85394e795e
|
More curses on PHP 5.0.5. see #13757, fixes #14160. for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@15471 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-07-25 07:35:59 +00:00 |
|
Andrew Nacin
|
ec9f6d34cb
|
Don't use deprecated functions. props filosofo, fixes #13854.
git-svn-id: https://develop.svn.wordpress.org/trunk@15229 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-11 17:49:35 +00:00 |
|
Ryan Boren
|
1006d5b101
|
Don't force post_status to publish for custom taxonomy queries. fixes #13755
git-svn-id: https://develop.svn.wordpress.org/trunk@15173 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-08 14:08:33 +00:00 |
|
Ryan Boren
|
aec821c651
|
Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-26 02:42:15 +00:00 |
|
Andrew Nacin
|
5bc3a62137
|
Give is_singular the ability to provide awareness/context for custom post types. props ryan, scribu. Usage: is_singular('book') or is_singular( array( 'newspapers', 'books' ) ). fixes #12588.
git-svn-id: https://develop.svn.wordpress.org/trunk@14887 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-25 15:36:23 +00:00 |
|
Ryan Boren
|
8203d22175
|
Fix pages setup in setup_postdata(). Props misterbisson. fixes #12651
git-svn-id: https://develop.svn.wordpress.org/trunk@14750 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-19 18:39:48 +00:00 |
|
Ryan Boren
|
14d8731a49
|
Don't update_post_caches if a persistent object cache is installed. fixes #12611
git-svn-id: https://develop.svn.wordpress.org/trunk@14665 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-15 15:00:53 +00:00 |
|
Peter Westwood
|
728b90a13b
|
Introduce wp_reset_postdata(). Use it to reset the post global for the current query_posts() call after using a loop with a new WP_Query object. Fixes #12320 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@14607 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-13 20:39:54 +00:00 |
|
Peter Westwood
|
f782838830
|
Add commentary about the posts_search filter. See #10667.
git-svn-id: https://develop.svn.wordpress.org/trunk@14603 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-13 17:34:43 +00:00 |
|
Andrew Nacin
|
490a0a99cd
|
More typos. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14588 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-12 21:03:33 +00:00 |
|
Andrew Nacin
|
323342deec
|
Move post type object capabilities to a 'cap' object. Allow them to be initialized via the 'capabilities' key (an array) when registering support for the post type. Caps are now referred to by the name of the cap as if it was a post, i.e. ->cap->edit_post. see #13358.
git-svn-id: https://develop.svn.wordpress.org/trunk@14585 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-12 20:45:18 +00:00 |
|
Andrew Nacin
|
d620c50f96
|
Remove apparent debug cruft committed in [14401]. fixes #13355
git-svn-id: https://develop.svn.wordpress.org/trunk@14565 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-11 18:28:12 +00:00 |
|
Ryan Boren
|
ee0b76261b
|
Allow turning off object_term and postmeta cache updates. Turn off object_term updates in the wp_get_nav_menu_items() get_posts() query to avoid useless taxonomy query.
git-svn-id: https://develop.svn.wordpress.org/trunk@14528 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-10 00:58:39 +00:00 |
|
Andrew Nacin
|
c100b80c20
|
Fix start of week and SQL WEEK handling. props mdawaffe, fixes #10397.
git-svn-id: https://develop.svn.wordpress.org/trunk@14499 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-07 05:01:29 +00:00 |
|
Andrew Nacin
|
cba25aba7e
|
Prevent ambiguous table aliases in wp_post_mime_type_where. props stephdau, jfarthing84, fixes #12750.
git-svn-id: https://develop.svn.wordpress.org/trunk@14478 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-06 18:03:05 +00:00 |
|
Andrew Nacin
|
0b3e082d6e
|
Remove duplicated query var. props lriggle, fixes #13280.
git-svn-id: https://develop.svn.wordpress.org/trunk@14477 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-06 17:49:54 +00:00 |
|
Dion Hulse
|
12196261a4
|
Handle $wp_query->query being a string in r14341. See #12391, #12047. Fixes #13241
git-svn-id: https://develop.svn.wordpress.org/trunk@14445 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 18:08:03 +00:00 |
|
Ryan Boren
|
d2b4e092aa
|
White list instead of black list post types when searching. Props sivel. fixes #13183
git-svn-id: https://develop.svn.wordpress.org/trunk@14419 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 22:22:34 +00:00 |
|
Ryan Boren
|
d783952469
|
Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 20:26:11 +00:00 |
|
Dion Hulse
|
d28dcf1ef6
|
s/#/ \/\/ / - Remove #comment with // comment in WP_Query
git-svn-id: https://develop.svn.wordpress.org/trunk@14402 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 20:20:46 +00:00 |
|
Dion Hulse
|
aa7c1d8a41
|
WP_Query whitespace cleanup, some loop cleanup as well
git-svn-id: https://develop.svn.wordpress.org/trunk@14401 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 20:19:13 +00:00 |
|
Dion Hulse
|
65aac68cd6
|
Fix custom WP_Queries when using page_on_front. Props aaroncampbell. See #12391 (Which caused it), Fixes #12047
git-svn-id: https://develop.svn.wordpress.org/trunk@14341 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-02 21:28:11 +00:00 |
|
Andrew Nacin
|
fbac23f1eb
|
Update object term cache for custom post types. props scribu, fixes #12989.
git-svn-id: https://develop.svn.wordpress.org/trunk@14310 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-29 20:43:59 +00:00 |
|
Ryan Boren
|
3e9cc3ebd9
|
The read_post cap cannot be checked for sticky posts because not logged in users don't have any caps. see #11197
git-svn-id: https://develop.svn.wordpress.org/trunk@14245 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-26 22:12:28 +00:00 |
|
Dion Hulse
|
4c6df3a2e4
|
Ignore sticky posts which the current user cannot read, Ignore sticky posts which have been explicitly excluded with 'post__not_in'. Fixes #11197
git-svn-id: https://develop.svn.wordpress.org/trunk@14217 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-24 06:04:05 +00:00 |
|
Dion Hulse
|
6f89c1a63a
|
Remove double-query for Author ID. Props simonwheatley. Fixes #12048
git-svn-id: https://develop.svn.wordpress.org/trunk@14160 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-19 10:50:03 +00:00 |
|
Andrew Nacin
|
a8d984183f
|
Fix sticky post handling. Use unset instead of array_splice to remove an item by key retrieved by array_search. props jeffstieler, fixes #11966.
git-svn-id: https://develop.svn.wordpress.org/trunk@14135 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-18 05:11:05 +00:00 |
|
Dion Hulse
|
66e73d0f64
|
Respect the post_type param for Taxonomy Queries, Props Otto & Dougal Campbell. Restrict Attachment post_status joins to queries involving attachment results ("any" or "attachment"). See #13020
git-svn-id: https://develop.svn.wordpress.org/trunk@14121 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-17 09:03:33 +00:00 |
|
Andrew Nacin
|
028f262ccf
|
Introduce the wp_filter_object_list() helper, with an $operator arg. Fixes an intersection bug in get_post_types() and get_taxonomies(). Also switches $operator default from 'or' to 'and' for get_post_stati(). props scribu, fixes #12966.
git-svn-id: https://develop.svn.wordpress.org/trunk@14108 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-16 14:08:58 +00:00 |
|
Dion Hulse
|
d648c8b9dd
|
Alternative implementation of custom post_type query_var handling. fills name & pagename for custom post_types to reduce amount of code duplication. See #12704
git-svn-id: https://develop.svn.wordpress.org/trunk@14072 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-11 13:51:24 +00:00 |
|
Dion Hulse
|
e28019c1ec
|
Fix a case where $post_type = 'any' causes a large query to run without any specifications (post_name/limits/id/etc). See #12704
git-svn-id: https://develop.svn.wordpress.org/trunk@14027 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-07 08:29:46 +00:00 |
|
Dion Hulse
|
99359a2b48
|
Remove Debug cruft.. See #12704
git-svn-id: https://develop.svn.wordpress.org/trunk@13839 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-27 06:03:58 +00:00 |
|
Dion Hulse
|
9cd846b401
|
Support multiple post_type query params/post_type's to be specified in a query. See #12704
git-svn-id: https://develop.svn.wordpress.org/trunk@13838 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-27 05:56:27 +00:00 |
|
Andrew Nacin
|
4f5a2095a8
|
Remove trailing whites and double semicolons.
git-svn-id: https://develop.svn.wordpress.org/trunk@13830 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-26 19:36:49 +00:00 |
|
Dion Hulse
|
af3144f092
|
When viewing a Parent term in a hierarchical taxonomy, display objects contained within children too. Props scribu. Fixes #12533
git-svn-id: https://develop.svn.wordpress.org/trunk@13787 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-21 02:52:00 +00:00 |
|
Dion Hulse
|
6be1550e75
|
Add hierarchical support for custom post_types in Rewrite Rules & Querying. See #12643
git-svn-id: https://develop.svn.wordpress.org/trunk@13774 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-20 02:23:52 +00:00 |
|
Andrew Nacin
|
dd306def81
|
Remove redundant isset() and empty() checks.
git-svn-id: https://develop.svn.wordpress.org/trunk@13770 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-19 21:29:21 +00:00 |
|
Peter Westwood
|
f93010c7ff
|
Make use of apply_filters_ref_array() when running the query. Fixes #9886 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@13758 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-18 21:55:25 +00:00 |
|
Ryan Boren
|
e61755c853
|
Trim trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@13733 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-17 16:27:25 +00:00 |
|
Mark Jaquith
|
8bca8131a6
|
More pedantry. "Setup" is not a verb. http://notaverb.com/setup
git-svn-id: https://develop.svn.wordpress.org/trunk@13725 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-17 04:39:50 +00:00 |
|
Dion Hulse
|
e7b6cd83c7
|
Prevent PHP Notices on 404 pages
git-svn-id: https://develop.svn.wordpress.org/trunk@13691 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-13 07:47:20 +00:00 |
|
Ryan Boren
|
78ef621011
|
Add no_found_rows argument to WP_Query::get_posts() to allow forcibly defeating SQL_CALC_FOUND_ROWS. Use no_found_rows for the query in get_boundary_post(). fixes #12557
git-svn-id: https://develop.svn.wordpress.org/trunk@13647 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-10 18:37:03 +00:00 |
|
Dion Hulse
|
d2232722ea
|
Don't 404 for empty custom taxonomy terms. See #12533
git-svn-id: https://develop.svn.wordpress.org/trunk@13615 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-07 00:42:50 +00:00 |
|
Dion Hulse
|
5f43ce3a7b
|
Add meta_value_num meta_key ordering for WP_Query. Allows Natural numeric ordering of results. Props stencil & scribu for cleanups. Fixes #10649
git-svn-id: https://develop.svn.wordpress.org/trunk@13501 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-28 12:49:10 +00:00 |
|
Dion Hulse
|
0f8493b92b
|
Revert part of r13486, is_tax() is false for tags||categories. See #11904
git-svn-id: https://develop.svn.wordpress.org/trunk@13495 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-28 09:45:52 +00:00 |
|
Dion Hulse
|
bfe10ba981
|
Re-use /page/xx/ for Post Paging on Page_on_front. Few fixes related to paging on front page. Fixes #12391
git-svn-id: https://develop.svn.wordpress.org/trunk@13494 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-28 09:40:42 +00:00 |
|
Dion Hulse
|
e7721041df
|
When using Page on front, Do not jump back to Blog listing when per-page query vars are set. Fixes #12047
git-svn-id: https://develop.svn.wordpress.org/trunk@13493 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-28 09:19:34 +00:00 |
|
Dion Hulse
|
4070e39a15
|
Initialise Search related query vars. Props scribu. Fixes #11480
git-svn-id: https://develop.svn.wordpress.org/trunk@13492 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-28 07:47:11 +00:00 |
|