Commit Graph

102 Commits

Author SHA1 Message Date
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
nacin
8c8bf5039f Remove unnecessary ternary operators such as (expr) ? true : false.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-19 21:15:00 +00:00
ryan
e25a65b36a Trim trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@13733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-17 16:27:25 +00:00
dd32
b2a312d1e5 Whitespace additions to WP_Rewrite. A few coding standards too.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-13 07:29:10 +00:00
dd32
e8dd01bb1b Add Endpoints for Attachments, Paging, Comment paging and custom Endpoints to custom post_type's. See #12597
git-svn-id: http://svn.automattic.com/wordpress/trunk@13688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-13 06:59:07 +00:00
nacin
92166b22f6 Don't check for the existence of index.php in the htaccess rewrite rules. props miqrogroove. see #11845
git-svn-id: http://svn.automattic.com/wordpress/trunk@13678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-11 23:33:01 +00:00
nacin
a4776498d3 Don't check for the existence of index.php in the htaccess rewrite rules. props miqrogroove. see #11845
git-svn-id: http://svn.automattic.com/wordpress/trunk@13676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-11 22:58:43 +00:00
wpmuguru
6abc4ea0fa update iis rewrite rules for MS, see #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@13596 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-05 23:44:43 +00:00
nacin
1ef299159c Introduce add_permastruct() and flush_rewrite_rules(), wrappers for the corresponding WP_Rewrite methods. Fixes #10912 props scribu
git-svn-id: http://svn.automattic.com/wordpress/trunk@13438 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-26 19:23:58 +00:00
ryan
9ab7306993 Remove author tags. fixes #12366
git-svn-id: http://svn.automattic.com/wordpress/trunk@13377 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-24 19:07:21 +00:00
ryan
6da55f7792 Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@12733 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-15 22:11:12 +00:00
ryan
84ad379150 Formatting cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@12700 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-11 22:30:21 +00:00
wpmuguru
7b64248bc8 merge in multisite login, wp-includes, See #11644
git-svn-id: http://svn.automattic.com/wordpress/trunk@12697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-11 21:49:40 +00:00
ryan
ec8e347792 Introduce home_url(). Props Denis-de-Bernardy, hakre. see #9008
git-svn-id: http://svn.automattic.com/wordpress/trunk@12598 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-04 17:23:29 +00:00
westi
05e19b1cde Check that get_page_hierarchy() returns something before trying to build the verbose page rules in WP_Rewrite::page_uri_index(). Fixes #11578.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-12-23 16:23:40 +00:00
ryan
9f2fbbc2f9 Fix attachment rewrite endpoints. Props Curioso. fixes #5553
git-svn-id: http://svn.automattic.com/wordpress/trunk@12271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-24 16:08:13 +00:00
ryan
97b5a5f483 Improve IIS rewrite support. Props ruslany, peaceablewhale. fixes #10386
git-svn-id: http://svn.automattic.com/wordpress/trunk@12264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-23 18:17:46 +00:00
ryan
3de2e1a319 Don't return extra permastructs if pretty permalinks not turned on. Props scribu. fixes #11061
git-svn-id: http://svn.automattic.com/wordpress/trunk@12230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-19 22:47:11 +00:00
markjaquith
22518cefe2 Revert to old options table storage of rewrite_rules. Transient object caches would silently regenerate rewrite_rules without giving plugins a chance to readd endpoints. fixes #10981
git-svn-id: http://svn.automattic.com/wordpress/trunk@12061 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-19 21:10:46 +00:00
westi
15d31d9644 Replace eval usage in request processing with new WP_MatchesMapRegex() class usage. See #9602 props hakre.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11853 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-20 20:09:36 +00:00
ryan
4d0c574bed Don't write to htaccess every time page is saved. Add hard/soft flush flag to flush_rules(). Make sure fopen is successful and silence errors. Props Viper007Bond. fixes #10181 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@11578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-06-16 02:44:28 +00:00
ryan
2df887bd07 Trim tailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@11450 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-24 23:47:49 +00:00
ryan
2eafafa8c6 Fix comment paging for static front page. Props DD32. fixes #8598
git-svn-id: http://svn.automattic.com/wordpress/trunk@11419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-20 22:24:37 +00:00
ryan
24f847661f Support IIS 7.0 URL Rewrite Module. Props ruslany. Hat tips to peaceablewhale, hakre, Denis-de-Bernardy, sivel. fixes #8974
git-svn-id: http://svn.automattic.com/wordpress/trunk@11350 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-16 02:04:36 +00:00
ryan
a1d5fbaec2 Better verbose page rule detection to support showing posts on a page with a custom permastruct. Props Denis-de-Bernardy. fixes #6603
git-svn-id: http://svn.automattic.com/wordpress/trunk@11335 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-14 21:50:20 +00:00
westi
55ce914fbc Add a permalink_structure_changed action to allow plugins to do something once the new structure has been applied to WP_Rewrite.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11325 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-05-14 06:38:34 +00:00
ryan
8cd2e92b69 Clarify add endpoint phpdoc. Props Denis-de-Bernardy. fixes #9476
git-svn-id: http://svn.automattic.com/wordpress/trunk@11102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-04-27 21:11:01 +00:00
ryan
e8dc44ad07 Cookie support for HTTP API. Props beaulebens. fixes #9049 #9037 #8727
git-svn-id: http://svn.automattic.com/wordpress/trunk@10512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-05 21:59:37 +00:00
ryan
091b7a876b Revert 10507. Had extra bits in. see #8702
git-svn-id: http://svn.automattic.com/wordpress/trunk@10508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-05 20:47:30 +00:00
ryan
80a6b13f81 HTTP API updates and fixes. Props sivel. see #8702
git-svn-id: http://svn.automattic.com/wordpress/trunk@10507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-05 20:46:39 +00:00
ryan
94756368e6 Update rewrite phpdoc. Props filosofo. fixes #8998
git-svn-id: http://svn.automattic.com/wordpress/trunk@10464 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-29 22:11:27 +00:00