Commit Graph

110 Commits

Author SHA1 Message Date
Ryan Boren 71f274c599 Add option to check caps when querying a particular post status. fixes #6052
git-svn-id: https://develop.svn.wordpress.org/trunk@7109 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 21:49:49 +00:00
Ryan Boren f05150a50f For page attachmentes, set both is_attachment and is_page to true so that templates cascade correctly.
git-svn-id: https://develop.svn.wordpress.org/trunk@7070 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-27 21:30:59 +00:00
Ryan Boren 47cec19e53 Small code formatting tweak
git-svn-id: https://develop.svn.wordpress.org/trunk@6986 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 20:48:28 +00:00
Ryan Boren 7ed364b2ce Notice fixes from nbachiyski. fixes #5961
git-svn-id: https://develop.svn.wordpress.org/trunk@6983 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-22 17:43:56 +00:00
Ryan Boren 5f85c2dc0c Media Library design updates from Andy. see #5911
git-svn-id: https://develop.svn.wordpress.org/trunk@6910 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-19 06:13:20 +00:00
Ryan Boren c8f887c6a6 Allow is_single(), is_category(), and is_tag() to accept arrays. Props fitzrev. fixes #5593
git-svn-id: https://develop.svn.wordpress.org/trunk@6823 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-13 19:02:08 +00:00
Ryan Boren d9127f97e1 Show full content, including content after the more tag, for feeds. fixes #2582
git-svn-id: https://develop.svn.wordpress.org/trunk@6763 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-09 00:19:48 +00:00
Ryan Boren ef7fb4b35e Allow rand post ordering. Props Otto42 and Nazgul. fixes #4617
git-svn-id: https://develop.svn.wordpress.org/trunk@6760 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-08 19:50:10 +00:00
Ryan Boren 452f423faf Rename is_front() to is_front_page() to avoid conflict with bbPress. see #3682
git-svn-id: https://develop.svn.wordpress.org/trunk@6740 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-06 21:21:22 +00:00
Ryan Boren 3a18b96c9b Trailing whitespace cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@6726 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-05 06:47:27 +00:00
Ryan Boren 53909dbb3b is_front() from markjaquith and Nazgul. fixes #3682
git-svn-id: https://develop.svn.wordpress.org/trunk@6704 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-02 00:13:34 +00:00
Ryan Boren e518fc833f Don't advance post counter when resetting query. see #5439
git-svn-id: https://develop.svn.wordpress.org/trunk@6688 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-29 23:58:41 +00:00
Ryan Boren 7195355b63 Make sure we have a post when doing post comment feed query. Props ruckus. see #5185
git-svn-id: https://develop.svn.wordpress.org/trunk@6683 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-29 19:01:39 +00:00
Peter Westwood 4f1971cfdb Switch from abs(intval()) to absint(). See #4762.
git-svn-id: https://develop.svn.wordpress.org/trunk@6682 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-29 18:48:38 +00:00
Ryan Boren 4179e52a2b Restore global post when resetting the query. Props ionfish. fixes #5439
git-svn-id: https://develop.svn.wordpress.org/trunk@6653 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-25 01:41:57 +00:00
Ryan Boren c929b2f5e5 Pass remember arg. see #5405
git-svn-id: https://develop.svn.wordpress.org/trunk@6644 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-23 18:20:59 +00:00
Ryan Boren b63e3868f1 Use is_admin. Props markjaquith. see #5487
git-svn-id: https://develop.svn.wordpress.org/trunk@6509 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-28 01:04:17 +00:00
Ryan Boren 5b1a91e0c3 Throw pages into search queries. Let's see how they handle. see #5149
git-svn-id: https://develop.svn.wordpress.org/trunk@6467 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-22 08:19:10 +00:00
Peter Westwood 3301f80416 Fix query variable naming errors.
git-svn-id: https://develop.svn.wordpress.org/trunk@6435 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-20 20:59:53 +00:00
Ryan Boren 996d913b0e Better is_admin() check from filosofo and pishmishy. fixes #5487
git-svn-id: https://develop.svn.wordpress.org/trunk@6412 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-19 17:56:16 +00:00
Ryan Boren 30bb10fba2 Accept array of pages for is_page(). Props azaozz. fixes #5430
git-svn-id: https://develop.svn.wordpress.org/trunk@6397 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-17 06:21:43 +00:00
Ryan Boren 1fdcc63822 Faster page_rows() from hailin. see #5303
git-svn-id: https://develop.svn.wordpress.org/trunk@6380 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-14 06:20:42 +00:00
Ryan Boren e10c490a4f Query page attachments from page requests so that they can both use the same set of rewrite rules. see #3614
git-svn-id: https://develop.svn.wordpress.org/trunk@6377 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-12 11:45:55 +00:00
Ryan Boren 3a8b2fcca3 Remove unused vars. Props DD32. see #5418
git-svn-id: https://develop.svn.wordpress.org/trunk@6364 602fd350-edb4-49c9-b593-d223f7449a82
2007-12-06 19:49:33 +00:00
Ryan Boren 1cdf22f276 Do two sets of filters on posts query. First set is used by regular plugins, second by caching plugins.
git-svn-id: https://develop.svn.wordpress.org/trunk@6341 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-18 19:36:30 +00:00
Ryan Boren 4bcd8eec3f Move posts_selection action to after post_limits filter.
git-svn-id: https://develop.svn.wordpress.org/trunk@6338 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-17 00:04:19 +00:00
Ryan Boren ed6c69983f Disambiguate columns. Props lawrence123. fixes #5256
git-svn-id: https://develop.svn.wordpress.org/trunk@6310 602fd350-edb4-49c9-b593-d223f7449a82
2007-11-03 19:00:33 +00:00
Ryan Boren cf584c357f Eliminate extra query.
git-svn-id: https://develop.svn.wordpress.org/trunk@6245 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-13 18:53:28 +00:00
Ryan Boren b6905da933 Use inner joins instead of left joins for taxonomy. Inner is faster. fixes #5179
git-svn-id: https://develop.svn.wordpress.org/trunk@6224 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-11 17:43:49 +00:00
Ryan Boren f027350b3f Add some spacing. fixes #5137 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@6189 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-05 16:27:48 +00:00
Ryan Boren 766e620f90 New taxonomy intersection queries from xknown. fixes #5137
git-svn-id: https://develop.svn.wordpress.org/trunk@6186 602fd350-edb4-49c9-b593-d223f7449a82
2007-10-04 18:10:03 +00:00
Ryan Boren 5917c5458c Add checks for WP_Error. Props filosofo. see #4809
git-svn-id: https://develop.svn.wordpress.org/trunk@6125 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-18 16:32:22 +00:00
Ryan Boren 11ed527c0d 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: https://develop.svn.wordpress.org/trunk@6074 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-11 18:06:52 +00:00
Ryan Boren 85bec38507 Don't skip sanitization if 404. Add wp_title display filters.
git-svn-id: https://develop.svn.wordpress.org/trunk@6035 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-05 03:11:04 +00:00
Ryan Boren 7a43c01e08 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Ryan Boren e9391140a7 Strip lines that contain only whitespace down to newlines.
git-svn-id: https://develop.svn.wordpress.org/trunk@6025 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:19:20 +00:00
Mark Jaquith 0459826bd3 Check for wp-admin case-insensitively in is_admin()
git-svn-id: https://develop.svn.wordpress.org/trunk@6022 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 19:56:09 +00:00
Ryan Boren c8e307e72f Tag unions and intersections. fixes #4895
git-svn-id: https://develop.svn.wordpress.org/trunk@6021 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 18:14:05 +00:00
Ryan Boren 2d3b05b2a6 tag_id not tag__id. see #4895
git-svn-id: https://develop.svn.wordpress.org/trunk@6012 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 03:26:57 +00:00
Ryan Boren 3e725d7a7d tag__in, tag__not_in, and tag_and queries. fixes #4895
git-svn-id: https://develop.svn.wordpress.org/trunk@6011 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 03:24:23 +00:00
Ryan Boren 9b4a30290f Add missing global and remove unused var. Props JeremyVisser. fixes #4818
git-svn-id: https://develop.svn.wordpress.org/trunk@5944 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-26 17:12:31 +00:00
Ryan Boren ca4e75cb57 Don't allow private query vars in url_to_postid
git-svn-id: https://develop.svn.wordpress.org/trunk@5925 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-23 16:09:37 +00:00
Ryan Boren 87234faca2 posts_results and posts_selection hooks. fixes #4799
git-svn-id: https://develop.svn.wordpress.org/trunk@5916 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-22 18:03:26 +00:00
Ryan Boren ece120b57f Some tag api additions from andy.
git-svn-id: https://develop.svn.wordpress.org/trunk@5912 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-21 18:39:45 +00:00
Ryan Boren a79d48ea1c wp_reset_query() from mdawaffe. fixes #4741
git-svn-id: https://develop.svn.wordpress.org/trunk@5907 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-20 22:55:43 +00:00
Ryan Boren 669d471fed Category union and intersection query vars. fixes #4750
git-svn-id: https://develop.svn.wordpress.org/trunk@5873 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-15 22:08:51 +00:00
Mark Jaquith 0885f81d08 Allow for hour/minute/second values in the QS that evaluate as false (like 0). Props Otto42 and agharbeia. fixes #4499
git-svn-id: https://develop.svn.wordpress.org/trunk@5848 602fd350-edb4-49c9-b593-d223f7449a82
2007-08-04 16:30:27 +00:00
Mark Jaquith 0f0788d24d Introducing post_status="pending". see #4446 and put any initial bug reports on that ticket
git-svn-id: https://develop.svn.wordpress.org/trunk@5707 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 16:24:28 +00:00
Ryan Boren b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
Ryan Boren e1ef29586c Use get_term_children() and get_term_field(). see #4189
git-svn-id: https://develop.svn.wordpress.org/trunk@5660 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-06 16:13:12 +00:00