duck_
176317abcf
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: http://core.svn.wordpress.org/trunk@21112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-25 20:41:14 +00:00
nacin
548baad816
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: http://svn.automattic.com/wordpress/trunk@20596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-04-25 20:49:57 +00:00
ryan
d910c26182
Pinking shears 6-20000
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@20000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-27 19:46:52 +00:00
duck_
b6edf3ddd2
Pages must be paged (/page/x/) to allow for the page_for_posts option. See #19876 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19810 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-02-01 19:19:32 +00:00
duck_
2f4c545761
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: http://svn.automattic.com/wordpress/trunk@19779 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-28 21:00:59 +00:00
duck_
e05c96316f
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: http://svn.automattic.com/wordpress/trunk@19756 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-25 22:48:24 +00:00
duck_
8361ce4be1
Improve the inline documentation of rewrite endpoints. See #16303 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19753 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-25 21:58:23 +00:00
duck_
e85445c826
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: http://svn.automattic.com/wordpress/trunk@19752 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-25 21:44:02 +00:00
duck_
bddf5d4ba8
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: http://svn.automattic.com/wordpress/trunk@19743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-24 18:27:18 +00:00
duck_
03fa135546
Set $paged and $walk_dirs to false in calls to WP_Rewrite::generate_rewrite_rules() for posts/pages. See #19876 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-23 19:03:56 +00:00
duck_
15cd5752b2
Simplify code in WP_Rewrite::page_rewrite_rules() and remove out-of-date documenation. Fixes #19875 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-22 17:21:29 +00:00
ryan
e3b46b25d3
Lose EOF ?>. Clean up EOF newlines. fixes #12307
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19712 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-01-08 17:01:11 +00:00
ryan
07ff8b216b
Use one space, not two, after trailing punctuation. fixes #19537
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-12-13 23:45:31 +00:00
ryan
d3030023cf
Avoid notice when handling malformed permalink structure. Props SergeyBiryukov. fixes #18883
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-11-17 18:43:33 +00:00
nacin
f11bc146f7
Use correct capture group in IIS7 multisite subdirectory rewrite rules. props carlospaulino, eduplessis, ruslany. fixes #17708 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 22:57:37 +00:00
nacin
239e36bc0a
We know that pagename is being assigned to $matches-something, so skip the variable variable. props duck_. see #18991 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@19017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-10-19 22:49:45 +00:00
westi
738904e996
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: http://svn.automattic.com/wordpress/trunk@18715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-09-19 12:15:43 +00:00
duck_
0995987f25
Fix rewrite documentation typo and clarify with "rules array" over "this/the structure". props SergeyBiryukov. see #16687
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@18566 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-08-18 17:57:22 +00:00
markjaquith
4a610eaa7b
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: http://svn.automattic.com/wordpress/trunk@18541 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-08-12 01:55:08 +00:00
nacin
3fb35c6739
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: http://svn.automattic.com/wordpress/trunk@18540 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-08-12 01:41:23 +00:00
markjaquith
9de72e9bfd
Direct rdf/rss redirects, to save a double redirect. props westi. see #4967
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@18538 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-08-11 23:45:02 +00:00
nacin
bd5090cbd6
Don't fetch auto-draft pages in WP_Rewrite::page_uri_index(). props duck_, see #17176 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17929 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-05-14 19:47:29 +00:00
ryan
04487fc268
Constructor cleanup. Props ocean90. fixes #16768
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-04-29 20:05:12 +00:00
markjaquith
59f5dff476
Correctly handle PATHINFO CPTs and CTs that specify with_front=false. fixes #16807 for trunk
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-03-10 04:24:48 +00:00
ryan
1d6b027adc
Revert [15987] [15988] [15989]. Props SergeyBiryukov. see #9824 fixes #16041
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17226 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2011-01-06 03:59:22 +00:00
nacin
e1eec3925a
More @since. props SergeyBiryukov, fixes #15445 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@17071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-20 09:25:21 +00:00
scribu
ff33f41daf
Remove excess comments from url_to_postid(). See #15771
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16878 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-11 09:28:36 +00:00
scribu
5bc9f1051c
Use is_singular in url_to_postid(). See #15771
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-11 09:25:02 +00:00
dd32
bc8dc99e43
Check to see if WP_Query has returned any posts before blindly accessing posts. Fixes #15771
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16872 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-12-11 06:35:47 +00:00
nacin
0d7979ea9a
s/flush/flush_rules/ in a comment. fixes #15474 , props hakre.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16470 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-18 19:21:54 +00:00
nacin
81a8f2d3ce
Use square brackets instead of braces for string access. props hakre, fixes #13900 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16340 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-13 09:53:55 +00:00
westi
00cfb6bd82
Fix some notices when pinging
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@16069 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-29 07:07:28 +00:00
nacin
0e41407e8c
Bool cast preg_match, in readable form. see #9824 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@15989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-27 00:30:49 +00:00
nacin
ea8ea55d49
Bool cast preg_match. see #9824 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@15988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-27 00:27:08 +00:00
scribu
8feaf39b4d
Don't trigger verbose page rules if permalink begins with fixed string. Fixes #9824
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@15987 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-27 00:25:03 +00:00
dd32
f76743d01a
Remove missed tokens in [15825]. See #12659
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@15826 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-17 06:10:53 +00:00
dd32
81924ad20b
Merge Category/Tag URL creation/rewriting into general Taxonomy system. Removes the legacy handling for these url's. See #12659
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@15825 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-17 05:41:22 +00:00
nacin
5a20c05d27
Phpdoc argument/@param cleanups. props duck_, see #14783 .
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@15590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-07 11:21:11 +00:00
scribu
f2c9a08521
Don't hardcode the pagination base. Fixes #12507
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@15582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-07 01:18:42 +00:00
ryan
43c22c1e5b
IIS rewrite fixes. Props duck_, ruslany. fixes #13679
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@15109 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-06-02 14:58:36 +00:00
wpmuguru
b41ce8cb18
add rewrites for registration pages, fixes #13638
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@15081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-31 20:50:27 +00:00
ryan
1a552dd029
Strip trailing whitespace
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@14924 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-26 02:42:15 +00:00
wpmuguru
ec8d5fee12
cleanup $indents, props filosofo, see #12758
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@14885 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-25 15:31:28 +00:00
wpmuguru
6eb9b64e22
update rewrite rules for IIS, props Frumph, see #12758
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@14871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-25 05:12:47 +00:00
ryan
7b7243d94a
Strip trailing whites.
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@14404 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 20:26:11 +00:00
nacin
10a2e47890
Don't serve dynamic robots.txt when WP is not installed at the root of a domain. props solarissmoke, fixes #13115
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@14273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-28 06:37:15 +00:00
dd32
356a50d1f0
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: http://svn.automattic.com/wordpress/trunk@14219 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-24 14:42:30 +00:00
nacin
98b9ace627
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: http://svn.automattic.com/wordpress/trunk@14155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-18 15:54:45 +00:00
dd32
b16190c496
Add hierarchical support for custom post_types in Rewrite Rules & Querying. See #12643
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@13774 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-20 02:23:52 +00:00
dd32
3fdd2bbdff
Allow for a custom Endpoint Mask to be passed to add_endpoint(). Allows for endpoints to be targeted to specific rewrite rules. Allow custom post_types to specify their Endpoint mask. Allows for post_type's rewrite rules to inherit Post endpoints, or alternatively, allows for add_endpoint() to target specific post_types. Fixes #12605
...
git-svn-id: http://svn.automattic.com/wordpress/trunk@13773 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-20 02:05:32 +00:00