Commit Graph

197 Commits

Author SHA1 Message Date
scribu
275888f2e6 Re-introduce ->tax_query as a read-only var. See #12891
git-svn-id: http://svn.automattic.com/wordpress/trunk@16414 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-11-17 02:04:08 +00:00
nacin
14ccdbec33 Pruning shears.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-21 19:55:28 +00:00
nacin
5e1184aa57 Pinking shears.
git-svn-id: http://svn.automattic.com/wordpress/trunk@15843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-19 07:48:22 +00:00
scribu
50dc04d43b Get rid of redundant ->tax_query. See #12891
git-svn-id: http://svn.automattic.com/wordpress/trunk@15765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-09 10:19:15 +00:00
dd32
2764315403 Fix canonical redirection for permalinks containing %category% with nested categories and paging. Fixes #13471 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@15707 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-04 11:30:11 +00:00
dd32
d9e1a542ee Introduce hierarchical taxonomy URL's, Can be enabled by setting 'hierarchical_url' to true upon taxonomy registration. See #12659
git-svn-id: http://svn.automattic.com/wordpress/trunk@15705 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-10-04 10:37:25 +00:00
scribu
692b43a71b Calculate term count using $wp_query->tax_query. See #12891
git-svn-id: http://svn.automattic.com/wordpress/trunk@15615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-09-14 11:34:40 +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
53d9320180 Temp fix for canonical redirects of taxonomy links containing non-ASCII bases. Props nbachiyski. see #14201
git-svn-id: http://svn.automattic.com/wordpress/trunk@15462 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-22 20:08:21 +00:00
ryan
614d734492 Remove rededundant code. see #14292
git-svn-id: http://svn.automattic.com/wordpress/trunk@15444 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-18 14:06:14 +00:00
ryan
d59d54b09d Hex octets are case-insenstive. Don't 301 when the only octet case differs. Props hakre. fixes #14292 for 3.1
git-svn-id: http://svn.automattic.com/wordpress/trunk@15437 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-07-18 13:46:35 +00:00
markjaquith
7baab2607d Properly redirect custom post type URLs in redirect_canonical(). fixes #13561
git-svn-id: http://svn.automattic.com/wordpress/trunk@14954 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-26 19:56:26 +00:00
westi
ba0ff79ca9 Switch to checking on tt_ids for the category lookup to ensure in_array call is PHP4 compatible. See #13410
git-svn-id: http://svn.automattic.com/wordpress/trunk@14696 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-16 20:47:18 +00:00
ryan
ef81c17d3e Attempt canonical redirect only for public post types. Props solarissmoke. see #13125
git-svn-id: http://svn.automattic.com/wordpress/trunk@14595 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-13 15:09:43 +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
dd32
4916a8075d Serve a canonical redirection for ?p=, ?page_id=, ?attachment_id= url's for incorrect post_types (ie. ?p=<page_id> will redirect to that page url). Fixes #13125
git-svn-id: http://svn.automattic.com/wordpress/trunk@14355 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-05-03 00:37:11 +00:00
dd32
cafb51263a Canonical redirect to correct location if rss2 is not default feed. wp-feed.php redirection to default feed type instad of rss2. Props solarissmoke. Fixes #13047
git-svn-id: http://svn.automattic.com/wordpress/trunk@14162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-19 12:03:01 +00:00
dd32
d792282cea Advertise the correct comment feed link for a Page on the Front. Do not canonical redirect the front page comments feeds to home. Fixes #12452
git-svn-id: http://svn.automattic.com/wordpress/trunk@14141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-04-18 06:51:16 +00:00
dd32
8ad6b78d44 Slight Coding standards update
git-svn-id: http://svn.automattic.com/wordpress/trunk@13866 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-28 06:05:50 +00:00
dd32
7be1b99ebe Add some defensive checks to Canonical redirection of %category% to ensure notices are not thrown. Props jfarthing84 for pointing out possibility. See #11907
git-svn-id: http://svn.automattic.com/wordpress/trunk@13798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-22 07:05:50 +00:00
dd32
b6e3b188e7 Only allow %category% to be a valid category attached to the current post when using %category% in a permalink structure. Fixes #11807
git-svn-id: http://svn.automattic.com/wordpress/trunk@13781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-20 06:27:27 +00:00
dd32
f90f47a073 Update Canonical paging to reconise /page(\d+)/? as a valid paging path. See #8948
git-svn-id: http://svn.automattic.com/wordpress/trunk@13780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-20 03:22:08 +00:00
dd32
9b0e7e79d0 Limit redirect_guess_404_permalink() to the same post_type if it's specified in the query. See #12601
git-svn-id: http://svn.automattic.com/wordpress/trunk@13697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-14 05:06:47 +00:00
dd32
099defbada Correct logic inversion in Canonical Taxonomy Term links. Fixes #12547
git-svn-id: http://svn.automattic.com/wordpress/trunk@13623 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-03-09 10:07:03 +00:00
dd32
0407057fec Dont clobber taxonomy intersections/unions. Only redirects to the canonical url if only one term has been queried. Props scribu for some of the commit. See #8948
git-svn-id: http://svn.automattic.com/wordpress/trunk@13480 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-28 02:49:01 +00:00
nacin
a8e56e49ec Use is_ssl() in place of manual SERVER['HTTPS'] == 'on' checks. fixes #11885
git-svn-id: http://svn.automattic.com/wordpress/trunk@13427 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-26 06:21:47 +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
dbfb51c6e0 Trim trailing whites
git-svn-id: http://svn.automattic.com/wordpress/trunk@13268 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-21 00:03:42 +00:00
dd32
9d2b6b6047 2nd pass at Taxonomy Term canonicalisation. Fix get_term_link() to expect null|false||WP_Error failure from get_term() family. See #12245, #8948
git-svn-id: http://svn.automattic.com/wordpress/trunk@13170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-16 09:08:26 +00:00
dd32
7ad40486aa s/$original/$redirect/ in [13091]. Props miqrogroove. See #8948
git-svn-id: http://svn.automattic.com/wordpress/trunk@13099 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-13 08:29:55 +00:00
dd32
2741e81149 Canonicalisation of the Taxonomy urls. Redirect /category/child/ to /category/parent/child/. Fix striping of slashes to use $redirect instead of $original. See #8948
git-svn-id: http://svn.automattic.com/wordpress/trunk@13091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-13 06:17:59 +00:00
dd32
c7253edea9 Strip out multiple slashes on non-post URL's. See #8948
git-svn-id: http://svn.automattic.com/wordpress/trunk@13072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-13 00:11:23 +00:00
dd32
9147f8ba7e Redirect ?page_id=xx for the Posts page to the posts page. Fixes #11991
git-svn-id: http://svn.automattic.com/wordpress/trunk@12980 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-06 03:50:55 +00:00
dd32
12c0b72d9e Redirect home_url variants to home_url(). See #11991
git-svn-id: http://svn.automattic.com/wordpress/trunk@12979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-02-06 03:40:24 +00:00
ryan
59e57dd6af User correct var. Props nacin. fixes #12066
git-svn-id: http://svn.automattic.com/wordpress/trunk@12889 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-28 17:30:50 +00:00
markjaquith
ffe9beca1d Do not fire the redirect_canonical filter if the redirect_url is empty. fixes #11700
git-svn-id: http://svn.automattic.com/wordpress/trunk@12692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-10 19:05:43 +00:00
markjaquith
145db4bad0 Do proper canonical redirect for ?paged=1 or /page/1/. fixes #11696
git-svn-id: http://svn.automattic.com/wordpress/trunk@12691 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2010-01-10 18:56:03 +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
ryan
0334c59be2 Fix undefined index notice in canonical. Props dd32. fixes #11057
git-svn-id: http://svn.automattic.com/wordpress/trunk@12202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-11-17 21:01:03 +00:00
markjaquith
95a814ffe6 Remove redundant !empty() checks. props filosofo. see #10960
git-svn-id: http://svn.automattic.com/wordpress/trunk@12040 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-15 14:47:04 +00:00
markjaquith
398bfcd57d Do not do a canonical redirect for negated author query strings. fixes #10960
git-svn-id: http://svn.automattic.com/wordpress/trunk@12034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-10-15 09:13:38 +00:00
ryan
8e3808bce2 Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@11930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-09-14 14:03:32 +00:00
ryan
4c219b94e6 Canonical redirect for attachment_id queries that have a permalink.
git-svn-id: http://svn.automattic.com/wordpress/trunk@11869 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-08-24 18:03:49 +00:00
ryan
b64cc30cf8 Canonical redirects for post name queries. Props DD32. see #6516
git-svn-id: http://svn.automattic.com/wordpress/trunk@11745 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-07-26 17:16:53 +00:00
markjaquith
b5f68df374 Strip /feed/ endings even if they are not at the very end, in canonical. props jhodgdon. fixes #8642 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-04 23:07:41 +00:00
markjaquith
9b9508e187 Allow plugins to provide a canonical redirect_url even if WordPress does not provide its own. props wnorris. fixes #8975 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10448 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-28 08:47:42 +00:00
markjaquith
f19f65a5e5 Only redirect categories if one "cat" positive integer is specified. fixes #8784 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10396 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-21 19:47:51 +00:00
markjaquith
ecffc4649f Handle front page comment feeds in Canonical. fixes #8320
git-svn-id: http://svn.automattic.com/wordpress/trunk@9883 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-25 21:28:42 +00:00
markjaquith
c1f75d51ab Comment Page URL fixes by wnorris. fixes #8297
git-svn-id: http://svn.automattic.com/wordpress/trunk@9831 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-21 17:33:05 +00:00
markjaquith
04d45cb1f3 Make Canonical feeds and paging play nice with each other and with PATHINFO URL structures. fixes #8076
git-svn-id: http://svn.automattic.com/wordpress/trunk@9697 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-14 22:48:22 +00:00
markjaquith
c323670331 Revert [9193]. See #6627. Will revisit for 2.8
git-svn-id: http://svn.automattic.com/wordpress/trunk@9649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-12 21:55:25 +00:00
markjaquith
dbb012bdaf Canonical now only redirects to a different domain if the domains differ by their yes-www/no-www status. fixes #5089
git-svn-id: http://svn.automattic.com/wordpress/trunk@9646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-12 21:27:19 +00:00
markjaquith
7ab338d7f8 Catch more blank query string thing cases, without resorting to crazy regex. props filosofo. fixes #8098
git-svn-id: http://svn.automattic.com/wordpress/trunk@9645 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-12 21:08:48 +00:00
markjaquith
21eb85b469 Be more picky about the trailing blank query string things we strip. props filosofo, fitztrev, stevish, azaozz, DD32 (go team!). fixes #8098. fixes #8180
git-svn-id: http://svn.automattic.com/wordpress/trunk@9642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-12 20:09:16 +00:00
ryan
2d1010a8fb Don't use deprecated functions. Props filosofo. fixes #8130
git-svn-id: http://svn.automattic.com/wordpress/trunk@9590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-10 17:45:38 +00:00
ryan
2fdde1e736 Notice fixes from filosofo and Viper007Bond. see #7509
git-svn-id: http://svn.automattic.com/wordpress/trunk@9506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-04 03:22:24 +00:00
ryan
3368e6b8e5 Warning fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@9475 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-02 20:53:15 +00:00
markjaquith
f614aea244 Properly handled posts with internal paging in Canonical
git-svn-id: http://svn.automattic.com/wordpress/trunk@9388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-28 19:21:23 +00:00
ryan
53220e2a0e Make get_comment_link() paging aware. Props Viper007Bond. see #7956
git-svn-id: http://svn.automattic.com/wordpress/trunk@9367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-27 16:31:26 +00:00
markjaquith
c3c2c50844 Redirect away from paged comments permalinks when comment paging has been turned off. props DD32. see #7942
git-svn-id: http://svn.automattic.com/wordpress/trunk@9322 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-24 10:53:09 +00:00
markjaquith
cf2730334f Enable pretty permalinks for previous_ and next_comments_link(). props DD32, Viper007Bond. see #7942
git-svn-id: http://svn.automattic.com/wordpress/trunk@9318 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-24 07:36:43 +00:00
ryan
f275541cf6 pretty permalinks for comment paging. Props Viper007Bind. fixes #7942
git-svn-id: http://svn.automattic.com/wordpress/trunk@9300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-23 18:55:22 +00:00
markjaquith
9d22cfb1f7 Proper trailing slashes for when is_front_page() does not show the blog. fixes #7892
git-svn-id: http://svn.automattic.com/wordpress/trunk@9214 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-16 21:14:42 +00:00
markjaquith
c7f54da90b Strip trailing /index.php in Canonical, fixes #5017. fixes #7173.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-16 19:17:04 +00:00
markjaquith
39ae0a4f8f Switch to using empty()/!empty() checks in Canonical. see #7537
git-svn-id: http://svn.automattic.com/wordpress/trunk@9197 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-16 16:08:00 +00:00
markjaquith
77da070d7a Redirect alternate is_single() URLs (like multiple category-based urls) to the canonical URL. fixes #6627
git-svn-id: http://svn.automattic.com/wordpress/trunk@9193 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-15 22:00:12 +00:00
westi
a0f339d3bf Notice fixes. See #7509 props DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9177 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-14 21:08:28 +00:00
markjaquith
828a6fd593 Canonical Feed URLs, first try. see #7182
git-svn-id: http://svn.automattic.com/wordpress/trunk@9156 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-14 05:51:01 +00:00
azaozz
fe20c47b1b Redirect to the correct URL on error, fixes #7706
git-svn-id: http://svn.automattic.com/wordpress/trunk@8843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-08 01:50:08 +00:00
westi
f7b32217a3 phpDoc corrections for wp-includes. See #7550 props santosj.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-27 06:45:13 +00:00
ryan
19a1e9682b Notice fixes. see #7509
git-svn-id: http://svn.automattic.com/wordpress/trunk@8732 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-25 21:50:11 +00:00
markjaquith
f4f6fb2019 Strip trailing spaces in URLs, redirect to canonical URL. fixes #7537
git-svn-id: http://svn.automattic.com/wordpress/trunk@8667 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-19 03:21:12 +00:00
markjaquith
eb6e891041 Fix braces so user_trailingslashit gets the correct information passed in canonical redirect code. props xorax. fixes #7483 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@8593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-08 17:43:44 +00:00
westi
b3cb14fb80 Lots of fixes for Notices when WP_DEBUG is set. See #6669 props santosj.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8589 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-08 17:05:10 +00:00
ryan
62784a594f phpdoc updates from jacobsantos. see #7038
git-svn-id: http://svn.automattic.com/wordpress/trunk@7990 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-25 15:45:05 +00:00
markjaquith
61881c0e82 Do not use the "home"-supplied host for canonical redirects if no host is there specified. props thenlich. fixes #6890
git-svn-id: http://svn.automattic.com/wordpress/trunk@7916 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-09 18:23:05 +00:00
ryan
2fd45c2192 Don't redirect robots. Props thenlich and DD32. fixes #6891
git-svn-id: http://svn.automattic.com/wordpress/trunk@7871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-05-01 21:38:40 +00:00
ryan
b793e1846f Revert changes to canonical that broke redirects. Props fitztrev. fixes #5961
git-svn-id: http://svn.automattic.com/wordpress/trunk@6998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-24 02:09:24 +00:00
ryan
dce0978cee Notice fixes from nbachiyski. fixes #5961
git-svn-id: http://svn.automattic.com/wordpress/trunk@6983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-22 17:43:56 +00:00
markjaquith
302ac4890e Allow redirect_canonical filter to cancel a redirect (just return FALSE). see #5766
git-svn-id: http://svn.automattic.com/wordpress/trunk@6743 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-06 22:57:15 +00:00
ryan
d88983793b Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@6726 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-02-05 06:47:27 +00:00
ryan
bdf77c2b8d phpdoc for canonical.php from darkdragon. fixes #5526
git-svn-id: http://svn.automattic.com/wordpress/trunk@6494 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-25 20:48:47 +00:00
westi
1f889417e5 Fix some of the notices visible with WP_DEBUG enabled.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6436 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-20 21:25:12 +00:00
ryan
028a159440 Remove unused vars. Props DD32. see #5418
git-svn-id: http://svn.automattic.com/wordpress/trunk@6364 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-12-06 19:49:33 +00:00
markjaquith
875424adae Explicitly exclude previews from canonicalization. fixes #5203 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@6263 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-10-17 20:14:38 +00:00
markjaquith
47955b3fae prepare() for wp-includes/ bookmark.php, canonical.php, comment.php, comment-template.php. see #4553
git-svn-id: http://svn.automattic.com/wordpress/trunk@6173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-27 07:34:15 +00:00
markjaquith
3be5215e08 Remove trailing /index.php fixing from canonical.php ... Thanks chaoticmortalcom. fixes #5017
git-svn-id: http://svn.automattic.com/wordpress/trunk@6143 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-20 20:25:43 +00:00
markjaquith
8a6802ef00 Canonical fixes: Allow Pages to have /page/x/. Always trailing slash home when it is not paged. Strip extra trailing slashes off of /page/x///
git-svn-id: http://svn.automattic.com/wordpress/trunk@6115 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-14 19:41:23 +00:00
markjaquith
3d3846ee8a Handle ports for canonical redirects. Props driverkt and westi. fixes #4970
git-svn-id: http://svn.automattic.com/wordpress/trunk@6112 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 19:24:05 +00:00
markjaquith
9ea001d704 Just some indent fixes in canonical.php
git-svn-id: http://svn.automattic.com/wordpress/trunk@6111 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-13 19:12:53 +00:00
markjaquith
1f3ce09d52 Ignore HOST capitalization differences for canonical redirects. props jbctech. fixes #4773
git-svn-id: http://svn.automattic.com/wordpress/trunk@6097 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-12 20:44:41 +00:00
markjaquith
4bc7869c84 Always trailingslash the "home" URL. Protect against chained redirects. Thanks wantmoore. fixes #4773
git-svn-id: http://svn.automattic.com/wordpress/trunk@6085 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-11 21:21:40 +00:00
ryan
321c310717 Remove trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@6026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-09-03 23:32:58 +00:00
markjaquith
816f89fb03 More cautious canonical-ness. Exclude IIS and POSTs. Better paging handling. Still a work in progress! see #4773
git-svn-id: http://svn.automattic.com/wordpress/trunk@5978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 21:06:51 +00:00
markjaquith
9e48d38752 Fix paging and preview links for canonical stuff. see #4773. fixes #4862
git-svn-id: http://svn.automattic.com/wordpress/trunk@5974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-29 18:10:11 +00:00
markjaquith
68501fd51b No canonical-ness for wp-admin. see #4773
git-svn-id: http://svn.automattic.com/wordpress/trunk@5921 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-23 03:40:51 +00:00
markjaquith
410a3c5762 Oops... forgot the svn add. Thanks mdawaffe. see #4554
git-svn-id: http://svn.automattic.com/wordpress/trunk@5891 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2007-08-17 03:45:59 +00:00