Commit Graph

224 Commits

Author SHA1 Message Date
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
Dion Hulse 10355ed13c More powerful version is is_tax(). Props filosofo, scribu. Adds $term parameter. Fixes #11904
git-svn-id: https://develop.svn.wordpress.org/trunk@13486 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-28 05:59:39 +00:00
Ryan Boren b2471216cd Revert [13187] pending further debate. see #12267
git-svn-id: https://develop.svn.wordpress.org/trunk@13318 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-23 01:13:37 +00:00
Ron Rennick f3a3e63a5b introduce post & comment classes, props skeltoac, See #12267
git-svn-id: https://develop.svn.wordpress.org/trunk@13187 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-18 01:52:37 +00:00
Ryan Boren 663ab7e478 Flag post statuses as public, private, protected, or internal. Add flags for showing the type in the admin all query and the admin status list. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@13172 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-16 21:13:44 +00:00
Ryan Boren a7c3d02452 Add trash to edit cap check.
git-svn-id: https://develop.svn.wordpress.org/trunk@13118 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 19:05:10 +00:00
Dion Hulse d5ced26371 Initialise Variables, Whitespace cleanup, Remove unused variables, Cast start_of_week option to int in sanitization.
git-svn-id: https://develop.svn.wordpress.org/trunk@13089 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-13 06:08:15 +00:00
Ryan Boren b08985b209 Consult exclude_from_search when retrieving post_status = any. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@13052 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-10 22:36:50 +00:00
Ryan Boren f932c77406 Retore p_status. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@13049 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-10 20:37:18 +00:00
Ryan Boren 153659240c posts_search filter. Props skeltoac. see #10667
git-svn-id: https://develop.svn.wordpress.org/trunk@13037 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-09 16:38:05 +00:00
Ryan Boren 712c98007d Look for single-.php templates. Add single- class to get_body_class(). Props ptahdunbar. see #12105
git-svn-id: https://develop.svn.wordpress.org/trunk@13032 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-08 22:05:05 +00:00
Ryan Boren a14ee51cad Use canonical status list. see #9674
git-svn-id: https://develop.svn.wordpress.org/trunk@12995 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-06 17:51:24 +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 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
Peter Westwood 1955a840a1 Make the meaning of is_home() more explicit.
git-svn-id: https://develop.svn.wordpress.org/trunk@12516 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-23 15:44:57 +00:00
Peter Westwood 55318cc19a Add is_comment_feed() to expose ->is_comment_feed. Fixes #10827 props scribu.
git-svn-id: https://develop.svn.wordpress.org/trunk@12487 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-22 14:04:14 +00:00
Ryan Boren 8e0d091c55 Remove no longer needed DB has_cap() checks. Props filosofo. fixes #11443
git-svn-id: https://develop.svn.wordpress.org/trunk@12409 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-15 21:01:57 +00:00
Andrew Ozz 7c0015e43e Move is_admin() to wp-settings.php so it's available when query.php is not included.
git-svn-id: https://develop.svn.wordpress.org/trunk@12393 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-14 00:38:05 +00:00
Ryan Boren 95f2058f8b Return false from is_paged() if on the first page. Props Denis-de-Bernardy. fixes #11389
git-svn-id: https://develop.svn.wordpress.org/trunk@12372 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-11 16:38:59 +00:00
Ryan Boren 65e6d5fb10 Fix is_tax(). Props scribu. fixes #10721
git-svn-id: https://develop.svn.wordpress.org/trunk@12316 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-02 18:00:32 +00:00
Andrew Ozz 55ea0988cd Don't show deleted Pages in wp.getPages results, props ryan, props Denis-de-Bernardy,fixes #11243
git-svn-id: https://develop.svn.wordpress.org/trunk@12303 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-01 08:14:42 +00:00
Mark Jaquith f922806cf7 Add missing break. props nickohrn. fixes #11037
git-svn-id: https://develop.svn.wordpress.org/trunk@12146 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-05 20:02:18 +00:00
Ryan Boren 9bea8a1abb Allow querying multiple post types. Props prettyboymp. fixes #10791
git-svn-id: https://develop.svn.wordpress.org/trunk@12144 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-05 16:08:53 +00:00
Ryan Boren 3f9f8dc3d6 Honor Post Type for Sticky Posts. Props chrisscott. fixes #11072
git-svn-id: https://develop.svn.wordpress.org/trunk@12143 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-05 15:52:01 +00:00
Mark Jaquith 19416faeac Allow ordering by comment_count. fixes #11037
git-svn-id: https://develop.svn.wordpress.org/trunk@12127 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-29 18:02:55 +00:00
Ryan Boren 83ad1ab1a8 Improve sanitize_post() performance. Perform raw filtering only once. Add filter check to eliminate double filtering. Props johanee. fixes #10972 see #10801
git-svn-id: https://develop.svn.wordpress.org/trunk@12062 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-19 21:28:44 +00:00
Peter Westwood c61e6f6bbd Remove duplicated create_function calls an use a private _search_terms_tidy function instead for tidying up the post/page searching when looking to attach orphans to a parent post or page.
git-svn-id: https://develop.svn.wordpress.org/trunk@12052 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-18 11:50:59 +00:00
Ryan Boren de6f496e44 Post type registration. Exclude post types added via plugin from searches by default. Introduce register_post_type() and get_post_types(). fixes #10885
git-svn-id: https://develop.svn.wordpress.org/trunk@11998 602fd350-edb4-49c9-b593-d223f7449a82
2009-10-06 14:43:05 +00:00
Mark Jaquith 737378702c esc_sql() for wp-includes
git-svn-id: https://develop.svn.wordpress.org/trunk@11978 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-27 05:33:56 +00:00
Ryan Boren f7a1111e3c Set the cap appropriate to the post type. fixes #10807 see #10605
git-svn-id: https://develop.svn.wordpress.org/trunk@11960 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-22 22:57:01 +00:00
Ryan Boren 43c201d458 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 14:03:32 +00:00
Andrew Ozz 5e8dbc10cd Fix displaying pages and attachments, props dd32, see #10605
git-svn-id: https://develop.svn.wordpress.org/trunk@11822 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-15 10:57:56 +00:00
Mark Jaquith 14ac0702da Always respect custom post_type in queries. props dd32, filosofo. fixes #10605
git-svn-id: https://develop.svn.wordpress.org/trunk@11817 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-15 03:28:03 +00:00
Andrew Ozz d9f8c67f2f Trash status updates for posts, pages, comments and attachments, props caesarsgrunt, see #4529
git-svn-id: https://develop.svn.wordpress.org/trunk@11749 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-30 13:39:34 +00:00
Ryan Boren 3a24e23c5c absint paged
git-svn-id: https://develop.svn.wordpress.org/trunk@11606 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-19 17:30:39 +00:00
Ryan Boren c6555c2442 Use proper field for category intersection queries. fixes #9985
git-svn-id: https://develop.svn.wordpress.org/trunk@11501 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-01 17:12:12 +00:00
Ryan Boren 22bf595381 Fix loop start, loop end workflow. Props Denis-de-Bernardy. fixes #9944
git-svn-id: https://develop.svn.wordpress.org/trunk@11464 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-26 23:57:01 +00:00
Ryan Boren cd50b4f950 Restore LEFT JOIN for post_status_join. fixes #9851 see #9720
git-svn-id: https://develop.svn.wordpress.org/trunk@11452 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-25 05:36:48 +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
Ryan Boren 8a76759cae Revert [11392]. It breaks custom taxonomies for attachments. see #8731
git-svn-id: https://develop.svn.wordpress.org/trunk@11420 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-21 00:10:04 +00:00
Ryan Boren 47556a2dad Add orderby=none. Props DD32. fixes #9819
git-svn-id: https://develop.svn.wordpress.org/trunk@11415 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-20 21:26:00 +00:00
Ryan Boren 036031cbab Remove global regs that can poison query objects. fixes #9854
git-svn-id: https://develop.svn.wordpress.org/trunk@11406 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-20 16:05:23 +00:00
Ryan Boren 506192e771 Reset post-related globals in wp_reset_query(). Props Denis-de-Bernardy. fixes #9256
git-svn-id: https://develop.svn.wordpress.org/trunk@11400 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-19 16:16:15 +00:00
Ryan Boren 4a648c3825 Pass query object to loop_start and loop_end actions. Props Denis-de-Bernardy. fixes #9854
git-svn-id: https://develop.svn.wordpress.org/trunk@11399 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-19 16:13:50 +00:00
Ryan Boren 1f9c258540 Lose broken post_status_join. Exclude revisions from post_type = any queries. Props gortsleigh. fixes #8731
git-svn-id: https://develop.svn.wordpress.org/trunk@11392 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-19 15:25:43 +00:00
Ryan Boren 8f2d1010bb Unset from GLOBALS. see #9854
git-svn-id: https://develop.svn.wordpress.org/trunk@11386 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 18:00:47 +00:00