Jon Cave
9ce4163dd7
Reinstate paged rewrite rules for the post permalink structure.
...
Removal of this stopped pagination working for bare category URLs when
certain %category% based permalink structures were in used.
Reverts one more piece of [19737]. Props SergeyBiryukov. See #21209 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21705 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 22:06:28 +00:00
Jon Cave
713783f4d0
Set $walk_dirs = true for post rewrite rule generation. See #21020 for trunk.
...
Partial revert of r19737 and r19778 as some users were relying on this behaviour.
git-svn-id: https://develop.svn.wordpress.org/trunk@21112 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-25 20:41:14 +00:00
Andrew Nacin
b75eefda56
Remove wp-register.php.
...
* Don't remove it on update. If you have it now, you'll keep it. New installs won't get it.
* Peform a redirect using rewrite + canonical to the new location, if the file doesn't exist.
props SergeyBiryukov.
fixes #18544 .
git-svn-id: https://develop.svn.wordpress.org/trunk@20596 602fd350-edb4-49c9-b593-d223f7449a82
2012-04-25 20:49:57 +00:00
Ryan Boren
89e9bcc1d6
Pinking shears 6-20000
...
git-svn-id: https://develop.svn.wordpress.org/trunk@20000 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-27 19:46:52 +00:00
Jon Cave
5371356600
Pages must be paged (/page/x/) to allow for the page_for_posts option. See #19876 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19810 602fd350-edb4-49c9-b593-d223f7449a82
2012-02-01 19:19:32 +00:00
Jon Cave
6a7fe5b25c
Use new $args parameter for (WP_Rewrite::)add_permastruct(). Fixes #16092 .
...
Use array_intersect_key() to keep WP_Rewrite::$extra_permastructs free of unnecessary/unknown keys + values.
git-svn-id: https://develop.svn.wordpress.org/trunk@19779 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-28 21:00:59 +00:00
Jon Cave
a981d2ad3a
Add the $query parameter to add_rewrite_tag() so that it matches WP_Rewrite::add_rewrite_tag(). Fixes #19871 .
...
Also rename some other parameters so that they all match.
git-svn-id: https://develop.svn.wordpress.org/trunk@19756 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 22:48:24 +00:00
Jon Cave
0ac5563ac8
Improve the inline documentation of rewrite endpoints. See #16303 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19753 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 21:58:23 +00:00
Jon Cave
827e45d7fa
Improve documentation of WP_Rewrite. Fixes #19897 .
...
In particular WP_Rewrite::$front, WP_Rewrite::$root, WP_Rewrite::$use_verbose_page_rules and WP_Rewrite::generate_rewrite_rules(). As well as some code indentation prettification.
git-svn-id: https://develop.svn.wordpress.org/trunk@19752 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-25 21:44:02 +00:00
Jon Cave
a9b6163795
Upgrade add_permastruct() to allow more control over WP_Rewrite::generate_rewrite_rules(). See #16092 .
...
The third argument is now a configuration array that mirrors the parameters of generate_rewrite_rules()
and allows for add_permastruct() specific args (i.e. with_front). The full configuration is stored in
WP_Rewrite::$extra_permastructs to be used by WP_Rewrite::rewrite_rules().
git-svn-id: https://develop.svn.wordpress.org/trunk@19743 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-24 18:27:18 +00:00
Jon Cave
3652e88cad
Set $paged and $walk_dirs to false in calls to WP_Rewrite::generate_rewrite_rules() for posts/pages. See #19876 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19737 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-23 19:03:56 +00:00
Jon Cave
cf4e9851fe
Simplify code in WP_Rewrite::page_rewrite_rules() and remove out-of-date documenation. Fixes #19875 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19736 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-22 17:21:29 +00:00
Ryan Boren
2b186b0c45
Lose EOF ?>. Clean up EOF newlines. fixes #12307
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19712 602fd350-edb4-49c9-b593-d223f7449a82
2012-01-08 17:01:11 +00:00
Ryan Boren
676ba7043e
Use one space, not two, after trailing punctuation. fixes #19537
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
2011-12-13 23:45:31 +00:00
Ryan Boren
4bf96f393e
Avoid notice when handling malformed permalink structure. Props SergeyBiryukov. fixes #18883
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19322 602fd350-edb4-49c9-b593-d223f7449a82
2011-11-17 18:43:33 +00:00
Andrew Nacin
86638ed332
Use correct capture group in IIS7 multisite subdirectory rewrite rules. props carlospaulino, eduplessis, ruslany. fixes #17708 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19018 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 22:57:37 +00:00
Andrew Nacin
d4bbfbad98
We know that pagename is being assigned to $matches-something, so skip the variable variable. props duck_. see #18991 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@19017 602fd350-edb4-49c9-b593-d223f7449a82
2011-10-19 22:49:45 +00:00
Peter Westwood
814faf7f4f
Escape the dot so that it only matches dot any not any character in the old feed files redirect.
...
Bump the db version so the rules regenerate.
See #18384
git-svn-id: https://develop.svn.wordpress.org/trunk@18715 602fd350-edb4-49c9-b593-d223f7449a82
2011-09-19 12:15:43 +00:00
Jon Cave
f960996aa4
Fix rewrite documentation typo and clarify with "rules array" over "this/the structure". props SergeyBiryukov. see #16687
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18566 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-18 17:57:22 +00:00
Mark Jaquith
48d294e7ea
Eliminate verbose rewrite rules for ambiguous rewrite structures, resulting in massive performance gains. props andy, otto42, duck_. Nice work everyone! see #16687
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18541 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-12 01:55:08 +00:00
Andrew Nacin
c8412b5037
Remove the old root feed files. Bump the db version so rewrite rules can regenerate. Don't add these files to old_files to leave them on existing installs. fixes #18384 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18540 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-12 01:41:23 +00:00
Mark Jaquith
681494971f
Direct rdf/rss redirects, to save a double redirect. props westi. see #4967
...
git-svn-id: https://develop.svn.wordpress.org/trunk@18538 602fd350-edb4-49c9-b593-d223f7449a82
2011-08-11 23:45:02 +00:00
Andrew Nacin
1c3bcac7fd
Don't fetch auto-draft pages in WP_Rewrite::page_uri_index(). props duck_, see #17176 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17929 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-14 19:47:29 +00:00
Ryan Boren
9730cb8d15
Constructor cleanup. Props ocean90. fixes #16768
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
2011-04-29 20:05:12 +00:00
Mark Jaquith
0984bae175
Correctly handle PATHINFO CPTs and CTs that specify with_front=false. fixes #16807 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17518 602fd350-edb4-49c9-b593-d223f7449a82
2011-03-10 04:24:48 +00:00
Ryan Boren
0c2c9f24a5
Revert [15987] [15988] [15989]. Props SergeyBiryukov. see #9824 fixes #16041
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17226 602fd350-edb4-49c9-b593-d223f7449a82
2011-01-06 03:59:22 +00:00
Andrew Nacin
18edc09e6a
More @since. props SergeyBiryukov, fixes #15445 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17071 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-20 09:25:21 +00:00
scribu
accc855bdc
Remove excess comments from url_to_postid(). See #15771
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16878 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-11 09:28:36 +00:00
scribu
9c1dd77de9
Use is_singular in url_to_postid(). See #15771
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16877 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-11 09:25:02 +00:00
Dion Hulse
416efb62b4
Check to see if WP_Query has returned any posts before blindly accessing posts. Fixes #15771
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16872 602fd350-edb4-49c9-b593-d223f7449a82
2010-12-11 06:35:47 +00:00
Andrew Nacin
98362127ad
s/flush/flush_rules/ in a comment. fixes #15474 , props hakre.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16470 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-18 19:21:54 +00:00
Andrew Nacin
200eefec46
Use square brackets instead of braces for string access. props hakre, fixes #13900 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16340 602fd350-edb4-49c9-b593-d223f7449a82
2010-11-13 09:53:55 +00:00
Peter Westwood
743606fac1
Fix some notices when pinging
...
git-svn-id: https://develop.svn.wordpress.org/trunk@16069 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-29 07:07:28 +00:00
Andrew Nacin
a484cb25a0
Bool cast preg_match, in readable form. see #9824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15989 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 00:30:49 +00:00
Andrew Nacin
2fa2485d20
Bool cast preg_match. see #9824 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15988 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 00:27:08 +00:00
scribu
f196a4932c
Don't trigger verbose page rules if permalink begins with fixed string. Fixes #9824
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15987 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-27 00:25:03 +00:00
Dion Hulse
20e3b23a80
Remove missed tokens in [15825]. See #12659
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15826 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 06:10:53 +00:00
Dion Hulse
d7b230ca26
Merge Category/Tag URL creation/rewriting into general Taxonomy system. Removes the legacy handling for these url's. See #12659
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15825 602fd350-edb4-49c9-b593-d223f7449a82
2010-10-17 05:41:22 +00:00
Andrew Nacin
9494e4ce7e
Phpdoc argument/@param cleanups. props duck_, see #14783 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15590 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 11:21:11 +00:00
scribu
bfb520f616
Don't hardcode the pagination base. Fixes #12507
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15582 602fd350-edb4-49c9-b593-d223f7449a82
2010-09-07 01:18:42 +00:00
Ryan Boren
ad175650ea
IIS rewrite fixes. Props duck_, ruslany. fixes #13679
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15109 602fd350-edb4-49c9-b593-d223f7449a82
2010-06-02 14:58:36 +00:00
Ron Rennick
e5bd1500f0
add rewrites for registration pages, fixes #13638
...
git-svn-id: https://develop.svn.wordpress.org/trunk@15081 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-31 20:50:27 +00:00
Ryan Boren
aec821c651
Strip trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14924 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-26 02:42:15 +00:00
Ron Rennick
a9dee7eba7
cleanup $indents, props filosofo, see #12758
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14885 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 15:31:28 +00:00
Ron Rennick
aa8a5ab580
update rewrite rules for IIS, props Frumph, see #12758
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14871 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-25 05:12:47 +00:00
Ryan Boren
d783952469
Strip trailing whites.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
2010-05-03 20:26:11 +00:00
Andrew Nacin
a3d0926168
Don't serve dynamic robots.txt when WP is not installed at the root of a domain. props solarissmoke, fixes #13115
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14273 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-28 06:37:15 +00:00
Dion Hulse
87981059db
Change custom post_type default Rewrite endpoint mask to EP_PERMALINK to ensure comment paging rules are added. Removes redundant/non-usable EP_NONE branch. Fixes #13086
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14219 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-24 14:42:30 +00:00
Andrew Nacin
bf00891a05
Use is_post_type_hierarchical and is_taxonomy_hierarchical when we're fetching a post/tax object only to check the hierarchical flag. fixes #12950 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14155 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-18 15:54:45 +00:00
Dion Hulse
6be1550e75
Add hierarchical support for custom post_types in Rewrite Rules & Querying. See #12643
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13774 602fd350-edb4-49c9-b593-d223f7449a82
2010-03-20 02:23:52 +00:00