Commit Graph

125 Commits

Author SHA1 Message Date
markjaquith
bf9f2f1cc7 Don't call loop_end hook if we don't have any posts. props Denis-de-Bernardy and DD32. fixes #6769 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 19:58:54 +00:00
ryan
f8cc400a40 Disambiguate column. Props voxpelli. fixes #7073
git-svn-id: http://svn.automattic.com/wordpress/trunk@8185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-06-24 17:49:24 +00:00
matt
2d8fa9ee21 get_queried_object should not return an array of terms, and wp_title should check is_tax. Hat tip: andy
git-svn-id: http://svn.automattic.com/wordpress/trunk@7941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-16 03:57:09 +00:00
ryan
7a0f94ffa3 Query cleanups. Use absint, concat where instead of overwrite, make post_parent independent, sanitize post__in and post__not_in. Props mdawaffe. see #6772
git-svn-id: http://svn.automattic.com/wordpress/trunk@7906 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-08 05:17:27 +00:00
ryan
c25a6fe381 Fix page 404 when page_for_posts is empty. see #6539
git-svn-id: http://svn.automattic.com/wordpress/trunk@7905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-07 19:57:15 +00:00
ryan
d9fd98601e Use WP_query in get_posts(). Props filosofo. fixes #6772
git-svn-id: http://svn.automattic.com/wordpress/trunk@7880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-03 20:08:32 +00:00
ryan
c92c2be2af Fix menu_order ordering. Props torfason. fixes #6731 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@7685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-15 01:39:33 +00:00
ryan
c3e32dcd4e Revert [7605]. It breaks setting posts page. see #6539
git-svn-id: http://svn.automattic.com/wordpress/trunk@7622 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-08 01:05:45 +00:00
ryan
81d1b488a9 Explicit ID check so we don't fall through for empties. Props natecook. fixes #6539 for 2.6
git-svn-id: http://svn.automattic.com/wordpress/trunk@7605 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-06 23:23:05 +00:00
markjaquith
29a551d786 Sanitize "cat" query var and cast to int before looking for a category template
git-svn-id: http://svn.automattic.com/wordpress/trunk@7586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-04-02 13:15:21 +00:00
ryan
bba593e250 Fix attachment links for permalink structures containing category tag. Props andy. fixes #4699
git-svn-id: http://svn.automattic.com/wordpress/trunk@7531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 20:17:31 +00:00
ryan
e1b1845154 Taxonomy links and template tags from andy. see #6357
git-svn-id: http://svn.automattic.com/wordpress/trunk@7520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-26 06:37:19 +00:00
ryan
8f35f1a817 Cleanup cat query var
git-svn-id: http://svn.automattic.com/wordpress/trunk@7511 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-25 17:47:02 +00:00
ryan
1276a8283c Fix some notices
git-svn-id: http://svn.automattic.com/wordpress/trunk@7503 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-24 20:30:33 +00:00
ryan
cce67416a3 Taxonomy queries and urls. Props andy. see #6357
git-svn-id: http://svn.automattic.com/wordpress/trunk@7491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-03-23 17:02:11 +00:00
ryan
884be4169f Add option to check caps when querying a particular post status. fixes #6052
git-svn-id: http://svn.automattic.com/wordpress/trunk@7109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-29 21:49:49 +00:00
ryan
0b43776d5f For page attachmentes, set both is_attachment and is_page to true so that templates cascade correctly.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-27 21:30:59 +00:00
ryan
699b250926 Small code formatting tweak
git-svn-id: http://svn.automattic.com/wordpress/trunk@6986 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 20:48:28 +00:00
ryan
dce0978cee Notice fixes from nbachiyski. fixes #5961
git-svn-id: http://svn.automattic.com/wordpress/trunk@6983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 17:43:56 +00:00
ryan
366cfe0d03 Media Library design updates from Andy. see #5911
git-svn-id: http://svn.automattic.com/wordpress/trunk@6910 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-19 06:13:20 +00:00
ryan
daf0d9a7e9 Allow is_single(), is_category(), and is_tag() to accept arrays. Props fitzrev. fixes #5593
git-svn-id: http://svn.automattic.com/wordpress/trunk@6823 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-13 19:02:08 +00:00
ryan
bf2f730177 Show full content, including content after the more tag, for feeds. fixes #2582
git-svn-id: http://svn.automattic.com/wordpress/trunk@6763 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-09 00:19:48 +00:00
ryan
9989d4c23e Allow rand post ordering. Props Otto42 and Nazgul. fixes #4617
git-svn-id: http://svn.automattic.com/wordpress/trunk@6760 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-08 19:50:10 +00:00
ryan
bddedf8c3e Rename is_front() to is_front_page() to avoid conflict with bbPress. see #3682
git-svn-id: http://svn.automattic.com/wordpress/trunk@6740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 21:21:22 +00:00
ryan
d88983793b Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@6726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 06:47:27 +00:00
ryan
43852a57c3 is_front() from markjaquith and Nazgul. fixes #3682
git-svn-id: http://svn.automattic.com/wordpress/trunk@6704 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-02 00:13:34 +00:00
ryan
c52e264fde Don't advance post counter when resetting query. see #5439
git-svn-id: http://svn.automattic.com/wordpress/trunk@6688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 23:58:41 +00:00
ryan
7f4b870b15 Make sure we have a post when doing post comment feed query. Props ruckus. see #5185
git-svn-id: http://svn.automattic.com/wordpress/trunk@6683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 19:01:39 +00:00
westi
520d17d7f0 Switch from abs(intval()) to absint(). See #4762.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-29 18:48:38 +00:00
ryan
3c0db5ec37 Restore global post when resetting the query. Props ionfish. fixes #5439
git-svn-id: http://svn.automattic.com/wordpress/trunk@6653 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-25 01:41:57 +00:00
ryan
7eb704b71b Pass remember arg. see #5405
git-svn-id: http://svn.automattic.com/wordpress/trunk@6644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-01-23 18:20:59 +00:00
ryan
f635599744 Use is_admin. Props markjaquith. see #5487
git-svn-id: http://svn.automattic.com/wordpress/trunk@6509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-28 01:04:17 +00:00
ryan
e587cbafcc Throw pages into search queries. Let's see how they handle. see #5149
git-svn-id: http://svn.automattic.com/wordpress/trunk@6467 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-22 08:19:10 +00:00
westi
21d9604409 Fix query variable naming errors.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6435 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 20:59:53 +00:00
ryan
f4b80af89a Better is_admin() check from filosofo and pishmishy. fixes #5487
git-svn-id: http://svn.automattic.com/wordpress/trunk@6412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-19 17:56:16 +00:00
ryan
1d9a4211dc Accept array of pages for is_page(). Props azaozz. fixes #5430
git-svn-id: http://svn.automattic.com/wordpress/trunk@6397 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-17 06:21:43 +00:00
ryan
2088cb4a1a Faster page_rows() from hailin. see #5303
git-svn-id: http://svn.automattic.com/wordpress/trunk@6380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-14 06:20:42 +00:00
ryan
f0a47b7127 Query page attachments from page requests so that they can both use the same set of rewrite rules. see #3614
git-svn-id: http://svn.automattic.com/wordpress/trunk@6377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-12 11:45:55 +00:00
ryan
028a159440 Remove unused vars. Props DD32. see #5418
git-svn-id: http://svn.automattic.com/wordpress/trunk@6364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-06 19:49:33 +00:00
ryan
bbc8fa3b14 Do two sets of filters on posts query. First set is used by regular plugins, second by caching plugins.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6341 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-18 19:36:30 +00:00
ryan
ab845b0000 Move posts_selection action to after post_limits filter.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-17 00:04:19 +00:00
ryan
a2e0f3352f Disambiguate columns. Props lawrence123. fixes #5256
git-svn-id: http://svn.automattic.com/wordpress/trunk@6310 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-11-03 19:00:33 +00:00
ryan
befa8f0f11 Eliminate extra query.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-13 18:53:28 +00:00
ryan
c674a475d7 Use inner joins instead of left joins for taxonomy. Inner is faster. fixes #5179
git-svn-id: http://svn.automattic.com/wordpress/trunk@6224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-11 17:43:49 +00:00
ryan
7f61116c5b Add some spacing. fixes #5137 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6189 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-05 16:27:48 +00:00
ryan
fe60a3ab06 New taxonomy intersection queries from xknown. fixes #5137
git-svn-id: http://svn.automattic.com/wordpress/trunk@6186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-04 18:10:03 +00:00
ryan
9bfccd6286 Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: http://svn.automattic.com/wordpress/trunk@6125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-18 16:32:22 +00:00
ryan
368b18d383 Set tag_id to first tag in multi tag queries. Have single_cat_title() fallback to single_tag_title() if is_tag so that existing category templates will work with tags. fixes #4506
git-svn-id: http://svn.automattic.com/wordpress/trunk@6074 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 18:06:52 +00:00
ryan
1760555e8b Don't skip sanitization if 404. Add wp_title display filters.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-05 03:11:04 +00:00
ryan
321c310717 Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@6026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 23:32:58 +00:00