Commit Graph

216 Commits

Author SHA1 Message Date
Ryan Boren
a0d5ea6ba2 Remove old preview stuff. Allow draft posts to be displayed if the logged in user has edit permissions on the draft. Don't use cruft-free links for drafts since they might not have a slug. http://mosquito.wordpress.org/view.php?id=1220
git-svn-id: https://develop.svn.wordpress.org/trunk@2523 602fd350-edb4-49c9-b593-d223f7449a82
2005-04-09 17:12:36 +00:00
Ryan Boren
8dec99fddb Cacheing cleanup. Introduce get_post() and get_category(). http://mosquito.wordpress.org/view.php?id=1157
git-svn-id: https://develop.svn.wordpress.org/trunk@2478 602fd350-edb4-49c9-b593-d223f7449a82
2005-03-27 20:45:01 +00:00
Ryan Boren
e3aa5de539 Feeds should always show x posts, not x days. http://mosquito.wordpress.org/view.php?id=1159
git-svn-id: https://develop.svn.wordpress.org/trunk@2475 602fd350-edb4-49c9-b593-d223f7449a82
2005-03-23 21:39:22 +00:00
Ryan Boren
f4e023b68a Add posts_orderby filter. http://mosquito.wordpress.org/view.php?id=1149 Props: davidchait
git-svn-id: https://develop.svn.wordpress.org/trunk@2466 602fd350-edb4-49c9-b593-d223f7449a82
2005-03-22 01:55:07 +00:00
Ryan Boren
35be0f6333 Don't stomp feed flag. http://mosquito.wordpress.org/view.php?id=1044 Props: shelleyp
git-svn-id: https://develop.svn.wordpress.org/trunk@2419 602fd350-edb4-49c9-b593-d223f7449a82
2005-03-08 01:20:08 +00:00
Ryan Boren
346d169130 Fix %post_id% and date collision avoidance. http://mosquito.wordpress.org/view.php?id=1027
git-svn-id: https://develop.svn.wordpress.org/trunk@2410 602fd350-edb4-49c9-b593-d223f7449a82
2005-03-05 18:13:31 +00:00
Ryan Boren
35b685cb65 Load comments-popup template through the index.
git-svn-id: https://develop.svn.wordpress.org/trunk@2332 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-14 09:17:23 +00:00
Ryan Boren
3d321e23a5 Use the object's is_* vars instead of the global is_* functions.
git-svn-id: https://develop.svn.wordpress.org/trunk@2300 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-13 19:45:04 +00:00
Ryan Boren
6ee469cf88 Process posts_per_rss in WP_Query. http://mosquito.wordpress.org/view.php?id=864
git-svn-id: https://develop.svn.wordpress.org/trunk@2299 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-13 19:42:22 +00:00
Ryan Boren
709c503d60 Make adding new feeds to rewrite rules easier.
git-svn-id: https://develop.svn.wordpress.org/trunk@2297 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-13 18:42:40 +00:00
Ryan Boren
59e46cbb3e /archives/%post_id% permalinks break for post ids over 1000. http://mosquito.wordpress.org/view.php?id=847
git-svn-id: https://develop.svn.wordpress.org/trunk@2296 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-13 18:26:50 +00:00
Ryan Boren
093d13ed1c Allow category and date filtering to coincide. Allow any number of spaces or commas to serve as item separators in the category and author arrays. http://mosquito.wordpress.org/view.php?id=221
git-svn-id: https://develop.svn.wordpress.org/trunk@2295 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-13 17:52:58 +00:00
Matt Mullenweg
68c44682ba http://mosquito.wordpress.org/view.php?id=778
git-svn-id: https://develop.svn.wordpress.org/trunk@2261 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-11 02:16:38 +00:00
Ryan Boren
5fc031ad98 Fix i18n page links. Handle RTL hierarchies.
git-svn-id: https://develop.svn.wordpress.org/trunk@2191 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-01 08:35:45 +00:00
Ryan Boren
c336926a96 Add parse_query_vars() and parse_query action.
git-svn-id: https://develop.svn.wordpress.org/trunk@2190 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-01 08:34:19 +00:00
Ryan Boren
1eda4450f8 Use parse_url instead of regex wackiness.
git-svn-id: https://develop.svn.wordpress.org/trunk@2187 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-01 07:05:00 +00:00
Ryan Boren
02a701f72b Allow multiple args to be passed to apply_filters and do_action. Move some code into merge_filters. Use call_user_func_array so that args can be passed by reference. Provide a default for the second arg to do_action so that we do not have to put empty strings in the do_action calls. Bug 768. Hat tip: morganiq
git-svn-id: https://develop.svn.wordpress.org/trunk@2184 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-01 06:20:54 +00:00
Ryan Boren
8b95197691 Remove support for 'all' queries and for poststart and postend.
git-svn-id: https://develop.svn.wordpress.org/trunk@2179 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-01 01:49:51 +00:00
Ryan Boren
f4ae90174e Add set method.
git-svn-id: https://develop.svn.wordpress.org/trunk@2177 602fd350-edb4-49c9-b593-d223f7449a82
2005-02-01 01:04:08 +00:00
Ryan Boren
eb37982a00 Add link filters for bug 743 (hat tip to morganiq). More abstraction and flexibility in WP_Rewrite.
git-svn-id: https://develop.svn.wordpress.org/trunk@2152 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-26 22:46:40 +00:00
Ryan Boren
c151b827a7 Remove old "site" page rewrite rules.
git-svn-id: https://develop.svn.wordpress.org/trunk@2147 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-25 00:57:14 +00:00
Ryan Boren
fc67ae3e7d Generate feed and trackback rules for pages. Bug 742.
git-svn-id: https://develop.svn.wordpress.org/trunk@2146 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-25 00:23:57 +00:00
Ryan Boren
3cb2f62076 Add more rewrite rule filters.
git-svn-id: https://develop.svn.wordpress.org/trunk@2115 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-21 05:10:13 +00:00
Ryan Boren
e693c815d3 Deprecate start_wp(). Move start_wp functionality to setup_postdata(). Add the_post() method to WP_Query.
git-svn-id: https://develop.svn.wordpress.org/trunk@2104 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-19 02:21:36 +00:00
Ryan Boren
5a9ead8b0f Add rewind_posts().
git-svn-id: https://develop.svn.wordpress.org/trunk@2026 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-31 21:49:48 +00:00
Matt Mullenweg
16bd00dfa0 Don't leave in debugging code (it's late)
git-svn-id: https://develop.svn.wordpress.org/trunk@2011 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-30 11:10:00 +00:00
Matt Mullenweg
4502d745cf Typo typo
git-svn-id: https://develop.svn.wordpress.org/trunk@2010 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-30 11:08:42 +00:00
Matt Mullenweg
7c3debb42a Moving default template stuff into wp-includes, uncluttering root
git-svn-id: https://develop.svn.wordpress.org/trunk@2009 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-30 10:58:06 +00:00
Ryan Boren
fe196958e6 If $p evaluates to zero, ignore it.
git-svn-id: https://develop.svn.wordpress.org/trunk@2007 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-28 17:36:28 +00:00
Ryan Boren
8662dfbc33 Leave htaccess alone if permalinks are not turned on. Bug 597.
git-svn-id: https://develop.svn.wordpress.org/trunk@2006 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-27 22:30:52 +00:00
Ryan Boren
ef5346f4bf Add is_admin flag. Do not set is_home if is_admin.
git-svn-id: https://develop.svn.wordpress.org/trunk@2003 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-26 16:37:55 +00:00
Ryan Boren
1e15c95646 Add post_where_paged and post_join_paged filter hooks. Move posts_where and posts_join before the paging queries.
git-svn-id: https://develop.svn.wordpress.org/trunk@2000 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-25 00:32:50 +00:00
Matt Mullenweg
6653d4bf0c Validation fix in retrospam
git-svn-id: https://develop.svn.wordpress.org/trunk@1986 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-20 17:10:15 +00:00
Ryan Boren
09d522246e Add generate_rewrite_rule().
git-svn-id: https://develop.svn.wordpress.org/trunk@1973 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-18 19:40:02 +00:00
Ryan Boren
0971447cf6 Rework query precedence for bug 541. Add is_trackback().
git-svn-id: https://develop.svn.wordpress.org/trunk@1972 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-18 00:28:24 +00:00
Ryan Boren
fc51a741e7 Fix date permalinks. Bug 539.
git-svn-id: https://develop.svn.wordpress.org/trunk@1959 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-15 01:23:38 +00:00
Matt Mullenweg
953caf1484 Axing htmlspecialchars because it double-encodes-encodes. Better error handling around queries.
git-svn-id: https://develop.svn.wordpress.org/trunk@1940 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-12 20:41:19 +00:00
Ryan Boren
cf66c440de get_author_permastruct()
git-svn-id: https://develop.svn.wordpress.org/trunk@1933 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-09 02:40:35 +00:00
Ryan Boren
8629ed18c3 Improve plugin hooks for rewrite manipulation. Allow pluggable template redirection.
git-svn-id: https://develop.svn.wordpress.org/trunk@1910 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-04 00:12:08 +00:00
Ryan Boren
dd4e4b9df6 Move rewrite and permalink functions into WP_Rewrite class.
git-svn-id: https://develop.svn.wordpress.org/trunk@1908 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-03 02:38:11 +00:00
Ryan Boren
61ce5ed685 Add posts_join filter.
git-svn-id: https://develop.svn.wordpress.org/trunk@1905 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-01 06:52:26 +00:00
Ryan Boren
63add842a8 Load paged.php for is_paged(). Paging no longer makes is_archive() true. Bug 500.
git-svn-id: https://develop.svn.wordpress.org/trunk@1904 602fd350-edb4-49c9-b593-d223f7449a82
2004-11-29 23:37:29 +00:00
Ryan Boren
6641104194 Add is_paged().
git-svn-id: https://develop.svn.wordpress.org/trunk@1871 602fd350-edb4-49c9-b593-d223f7449a82
2004-11-20 18:32:31 +00:00
Ryan Boren
00d3226b7b Add $post_per_archive_page to override the number of posts to show for an archive page. Turn off paging if $post_per_* are set to -1.
git-svn-id: https://develop.svn.wordpress.org/trunk@1835 602fd350-edb4-49c9-b593-d223f7449a82
2004-10-27 23:58:40 +00:00
Ryan Boren
ad7e0b673b Use page_id=xx instead of p=xx&static=1
git-svn-id: https://develop.svn.wordpress.org/trunk@1759 602fd350-edb4-49c9-b593-d223f7449a82
2004-10-08 08:06:21 +00:00
Ryan Boren
1268dcb29b Extend is_single(), is_page(), is_category(), and is_author() to accept an optional argument which designates a particular id, name, or nicename.
git-svn-id: https://develop.svn.wordpress.org/trunk@1728 602fd350-edb4-49c9-b593-d223f7449a82
2004-10-02 19:24:40 +00:00
Ryan Boren
c6ee28749c Use get_query_var to get the search terms.
git-svn-id: https://develop.svn.wordpress.org/trunk@1714 602fd350-edb4-49c9-b593-d223f7449a82
2004-09-27 00:46:42 +00:00
Ryan Boren
5980b30da1 If the query is for a page, make sure single is false.
git-svn-id: https://develop.svn.wordpress.org/trunk@1645 602fd350-edb4-49c9-b593-d223f7449a82
2004-09-14 06:56:13 +00:00
Ryan Boren
bce7d33025 Use get_query_var() to get cat and name so that we pick up any processing done on them by the query.
git-svn-id: https://develop.svn.wordpress.org/trunk@1629 602fd350-edb4-49c9-b593-d223f7449a82
2004-09-09 03:45:51 +00:00
Matt Mullenweg
f0edc5ccf7 Retrospam check from Kitten
git-svn-id: https://develop.svn.wordpress.org/trunk@1620 602fd350-edb4-49c9-b593-d223f7449a82
2004-09-08 08:17:53 +00:00
Ryan Boren
4e7e0194b5 Paging by days fix.
git-svn-id: https://develop.svn.wordpress.org/trunk@1618 602fd350-edb4-49c9-b593-d223f7449a82
2004-09-08 00:02:53 +00:00
Ryan Boren
6a98ee3737 New page by day code from Sebastian Herp.
git-svn-id: https://develop.svn.wordpress.org/trunk@1614 602fd350-edb4-49c9-b593-d223f7449a82
2004-09-06 20:03:16 +00:00
Ryan Boren
3d451b067e Add missing join to page by day query.
git-svn-id: https://develop.svn.wordpress.org/trunk@1613 602fd350-edb4-49c9-b593-d223f7449a82
2004-09-06 03:03:08 +00:00
Ryan Boren
7ec1b62a42 Remove left over debug output.
git-svn-id: https://develop.svn.wordpress.org/trunk@1611 602fd350-edb4-49c9-b593-d223f7449a82
2004-09-05 20:06:01 +00:00
Ryan Boren
24fd61e7fc Improve paging by days. Retabify source.
git-svn-id: https://develop.svn.wordpress.org/trunk@1610 602fd350-edb4-49c9-b593-d223f7449a82
2004-09-05 20:00:09 +00:00
Ryan Boren
b9fc57acbc 404 permalink handler.
git-svn-id: https://develop.svn.wordpress.org/trunk@1570 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-27 20:59:38 +00:00
Ryan Boren
8da2215076 Template redirection.
git-svn-id: https://develop.svn.wordpress.org/trunk@1558 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-24 08:43:01 +00:00
Ryan Boren
046c5333e8 Add is_year(), is_month(), is_day(), is_time().
git-svn-id: https://develop.svn.wordpress.org/trunk@1556 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-24 01:24:48 +00:00
Ryan Boren
3db73193ef Paging cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@1536 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-16 22:50:06 +00:00
Ryan Boren
38088a0503 Use sanitize_title() to process post, page, author, and category names in the query.
git-svn-id: https://develop.svn.wordpress.org/trunk@1533 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-14 16:08:57 +00:00
Ryan Boren
01b53facab Add pagename query var.
git-svn-id: https://develop.svn.wordpress.org/trunk@1531 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-11 01:55:34 +00:00
Ryan Boren
ec57c1a114 Static pages. Take 1.
git-svn-id: https://develop.svn.wordpress.org/trunk@1527 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-10 05:35:59 +00:00
Ryan Boren
cf3a6080bd WP Query class.
git-svn-id: https://develop.svn.wordpress.org/trunk@1516 602fd350-edb4-49c9-b593-d223f7449a82
2004-08-08 15:31:50 +00:00
Ryan Boren
fdaf705b04 Support timestamp permalinks. Make wider use of is_single(). Bug 0000194.
git-svn-id: https://develop.svn.wordpress.org/trunk@1491 602fd350-edb4-49c9-b593-d223f7449a82
2004-07-28 02:43:54 +00:00
Ryan Boren
d605d2aa6f Fix for 0000190. Do not set the category query state to true if single, date, or search are true.
git-svn-id: https://develop.svn.wordpress.org/trunk@1490 602fd350-edb4-49c9-b593-d223f7449a82
2004-07-28 01:59:29 +00:00
Ryan Boren
4c0a18c68e Add WP_Query_State class. Introduce is_single(), is_archive(), and friends.
git-svn-id: https://develop.svn.wordpress.org/trunk@1449 602fd350-edb4-49c9-b593-d223f7449a82
2004-06-30 15:31:49 +00:00