Commit Graph

189 Commits

Author SHA1 Message Date
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
Ryan Boren c6debe7b9e Break global post ref so we don't pollute queries. see #9854
git-svn-id: https://develop.svn.wordpress.org/trunk@11382 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-18 15:56:39 +00:00
Ryan Boren d600eaf1c7 Allow combining category and tag queries. Props turboguy. fixes #5433
git-svn-id: https://develop.svn.wordpress.org/trunk@11348 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-15 23:47:28 +00:00
Ryan Boren c4f78ad63a Don't localize dates where not appropriate. Props Denis-de-Bernardy, hakre. fixes #9730
git-svn-id: https://develop.svn.wordpress.org/trunk@11323 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-14 02:00:32 +00:00
Ryan Boren 9dab147679 JOIN instead of LEFT JOIN. Props Denis-de-Bernardy. fixes #9720
git-svn-id: https://develop.svn.wordpress.org/trunk@11259 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 04:56:00 +00:00
Peter Westwood 5173e6c7f8 Prevent notice check on invalid sticky settings. See #9393 props nbachiyski.
git-svn-id: https://develop.svn.wordpress.org/trunk@11230 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-07 07:05:35 +00:00
Ryan Boren 7e1eb1289d Add the_post action. Props Denis-de-Bernardy. fixes #6284
git-svn-id: https://develop.svn.wordpress.org/trunk@11213 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-06 01:42:43 +00:00
Ryan Boren 41692335a8 Comment query filters. Props filosofo. fixes #9635
git-svn-id: https://develop.svn.wordpress.org/trunk@11211 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-05 22:41:26 +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 9627196cb4 Sanitize when querying against category name so that multiple-word subcategories match. props filosofo. fixes #8619
git-svn-id: https://develop.svn.wordpress.org/trunk@11121 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-29 16:25:33 +00:00
Ryan Boren 067e8ba9ee Don't show password protected posts in searches for non-logged in users. Props coffee2code. fixes #9559
git-svn-id: https://develop.svn.wordpress.org/trunk@11106 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-28 00:05:43 +00:00
Andrew Ozz d812bc92a8 Fix category__not_in and tag__not_in running empty, props coffee2code, fixes #9645
git-svn-id: https://develop.svn.wordpress.org/trunk@11086 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-25 07:48:17 +00:00
Ryan Boren e2c1cc6c08 Revert [10956]. fixes #9643 see #8619
git-svn-id: https://develop.svn.wordpress.org/trunk@11085 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-25 00:01:05 +00:00
Ryan Boren 12c7093645 Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@11013 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-20 18:18:39 +00:00
Ryan Boren fcb4384381 Cache user lookups made by nicename. Add get_user_by(). fixes #4170
git-svn-id: https://develop.svn.wordpress.org/trunk@10992 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-17 21:25:11 +00:00
Mark Jaquith 6ed53a4461 Sanitize when querying against category name so that multiple-word subcategories match. props filosofo. fixes #8619
git-svn-id: https://develop.svn.wordpress.org/trunk@10956 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-16 21:47:42 +00:00
Ryan Boren 866d4203ed robots.txt is not home. Props johnbillion. fixes #9482
git-svn-id: https://develop.svn.wordpress.org/trunk@10920 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-13 16:15:44 +00:00
Andrew Ozz 96dc28968e Set the taxonomy/term when using a custom ?tax_slug=term_slug query, props DD32, fixes #9453
git-svn-id: https://develop.svn.wordpress.org/trunk@10866 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-04 10:48:22 +00:00
Ryan Boren a8f8d9bdad Remove category ordering. Props filosofo. fixes #9228
git-svn-id: https://develop.svn.wordpress.org/trunk@10779 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-13 22:01:33 +00:00
Ryan Boren 843229bc36 Remove meta_value from selected fields. Props filosofo. fixes #9177
git-svn-id: https://develop.svn.wordpress.org/trunk@10600 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-19 19:19:20 +00:00
Ryan Boren 023dca55ec Use group by for meta key queries. Props filosofo. fixes #9167 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@10598 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-19 19:17:06 +00:00
Ryan Boren 4ad180ca5b Obey post_type. Props filosofo. fixes #8872
git-svn-id: https://develop.svn.wordpress.org/trunk@10503 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-04 20:32:27 +00:00
Ryan Boren baaaa352ba Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
2008-12-09 18:03:31 +00:00
Ryan Boren e8169296b0 Return null if queried object not found. fixes #8244
git-svn-id: https://develop.svn.wordpress.org/trunk@9859 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-24 06:14:40 +00:00
Ryan Boren a32bc07082 Use is_numeric instead of is_integer. Props johnconners. fixes #8284
git-svn-id: https://develop.svn.wordpress.org/trunk@9795 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-19 20:48:05 +00:00
Mark Jaquith 72621ce78b Allow post_parent=0 queries to work. props stefano.verna. fixes #8085
git-svn-id: https://develop.svn.wordpress.org/trunk@9774 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-19 05:02:24 +00:00
Ryan Boren 3a7e85c5ec Notice fixes. Props DD32. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9714 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-15 17:56:44 +00:00
Ryan Boren 83e002f20b Notice fixes from DD32. see #7509
git-svn-id: https://develop.svn.wordpress.org/trunk@9596 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-10 18:54:18 +00:00
Andrew Ozz 7d45802347 Preview fixes: different method of showing previews for published posts, now uses the proper templates. Fixes #8052
git-svn-id: https://develop.svn.wordpress.org/trunk@9509 602fd350-edb4-49c9-b593-d223f7449a82
2008-11-04 13:00:12 +00:00
Andrew Ozz 53b4adbb1e Bring back [8788], was reverted with #7663
git-svn-id: https://develop.svn.wordpress.org/trunk@9081 602fd350-edb4-49c9-b593-d223f7449a82
2008-10-04 01:35:47 +00:00
Ryan Boren 2084dc7f8f tag__not_in and category__not_in query fixes. see #7599
git-svn-id: https://develop.svn.wordpress.org/trunk@9031 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-29 21:24:24 +00:00
Ryan Boren d9c4380549 Group by not needed for not_in and and taxonomy queries. Props Otto42. fixes #7761
git-svn-id: https://develop.svn.wordpress.org/trunk@8968 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-24 08:03:42 +00:00
Ryan Boren 23fd52bd85 First cut of comment paging. Add paging and threading settings. see #7769 #7635
git-svn-id: https://develop.svn.wordpress.org/trunk@8961 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-23 21:11:27 +00:00
Andrew Ozz 47a31f05d0 Allow posts to be ordered by meta_key, props AaronCampbell, fixes#7431
git-svn-id: https://develop.svn.wordpress.org/trunk@8922 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-18 05:34:37 +00:00
Ryan Boren 80199e4862 phpdoc for query.php. Props jacobsantos. fixes #7663
git-svn-id: https://develop.svn.wordpress.org/trunk@8807 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-04 19:19:32 +00:00
Andrew Ozz 6a1964e13f is_archive() should be true for custom taxonomies too
git-svn-id: https://develop.svn.wordpress.org/trunk@8788 602fd350-edb4-49c9-b593-d223f7449a82
2008-09-01 04:10:57 +00:00