Jon Cave
0a7dbdc284
Introduce a new endpoint mask for all archives, fixes #16303 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24812 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-28 19:18:19 +00:00
Jon Cave
7b0a5e5240
Drop leading / by retrieving the inner subpattern when matching attachment endpoints.
...
Fixes #22619
git-svn-id: https://develop.svn.wordpress.org/trunk@24809 602fd350-edb4-49c9-b593-d223f7449a82
2013-07-28 19:02:08 +00:00
Andrew Nacin
2523656757
delete_user_setting() and remove_action() were getting called with too many args. props rlerdorf. see #24210 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@24125 602fd350-edb4-49c9-b593-d223f7449a82
2013-04-29 13:25:15 +00:00
Andrew Nacin
a4324ec19c
Remove bogus pagination rules from the comments permastruct. (As in, comments/page/?([0-9]{1,})/?$.) props wonderboymusic, fixes #21138 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@23524 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-28 18:35:13 +00:00
Mark Jaquith
524e73f175
Consistently use $wp_rewrite->index instead of hardcoding "index.php".
...
props wonderboymusic. fixes #7337
git-svn-id: https://develop.svn.wordpress.org/trunk@23305 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-18 13:44:22 +00:00
Andrew Nacin
dea9cf01ce
Update the old wp-app.php rule to allow for a trailing slash followed by endpoint data. props wonderboymusic. fixes #22035 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22441 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 21:27:02 +00:00
Ryan Boren
ba7dbbe78d
Revert [22365]. see #21167
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22403 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 19:45:51 +00:00
Jon Cave
65f6490eca
Actually pass old permalink structure with permalink_structure_changed action
...
Props doublesharp. Fixes #22351 .
git-svn-id: https://develop.svn.wordpress.org/trunk@22398 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 12:41:33 +00:00
Ryan Boren
38b29deb8e
preg_quote() the permalink structure so that regex special chars such as dots are correctly handled. Props SergeyBiryukov. fixes #21167
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22365 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-05 14:13:29 +00:00
Mark Jaquith
52801db5fc
Make Multisite work when WordPress is installed in a subdirectory. You can now have WordPress Multisite as an SVN external or a Git submodule! props johnjamesjacoby, evansolomon, duck_, jakemgold, nacin, markjaquith. see #19796
...
git-svn-id: https://develop.svn.wordpress.org/trunk@22042 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:07:21 +00:00
Andrew Nacin
7f29924c6a
Remove ms-files.php rewriting from WordPress multisite. fixes #19235 .
...
Keep existing networks compatible with a ms_files_rewriting network option.
git-svn-id: https://develop.svn.wordpress.org/trunk@21823 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 22:22:20 +00:00
Andrew Nacin
9c322a7270
Remove accidental cruft in [21804] caused by renaming variables. see #21509 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21819 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 20:15:56 +00:00
Andrew Nacin
dfac91464f
Remove AtomPub from core.
...
* Will be replaced with http://wordpress.org/extend/plugins/atom-publishing-protocol/ .
* Introduces an action, xmlrpc_rsd_apis, to add APIs to xmlrpc.php?rsd.
* Introduces support for 'error' being 403 and 50x in class-wp.php.
* Removes 'Remote Publishing' from Writing Settings (see [21804]). Keeps the remote_publishing settings section.
DB version is bumped to generate the new wp-app rewrite rule and remove the old enable_app option.
props wonderboymusic.
fixes #21509 .
git-svn-id: https://develop.svn.wordpress.org/trunk@21818 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 20:11:39 +00:00
Andrew Nacin
5097915ce8
Use site_url() in WP_Rewrite::mod_rewrite_rules(), rather than get_option(). props JustinSainton. fixes #21186 .
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21810 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 01:44:48 +00:00
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