[wp-trac] Re: [WordPress Trac] #6516: canonical redirect doesn't
redirect ?name=slug
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 9 11:05:52 GMT 2009
#6516: canonical redirect doesn't redirect ?name=slug
-------------------------------------+--------------------------------------
Reporter: Denis-de-Bernardy | Owner: markjaquith
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: Canonical | Version: 2.5
Severity: major | Resolution:
Keywords: has-patch needs-testing |
-------------------------------------+--------------------------------------
Changes (by DD32):
* keywords: => has-patch needs-testing
* owner: anonymous => markjaquith
* component: Optimization => Canonical
* milestone: 2.9 => 2.8
Comment:
> attachment 6516.diff added.
* Redirects ?name and ?pagename to their permalinks
* WP_Query changes:
* supports querying based on 'pagename' for pages which are not a
static front page
* {{{if ( !empty($reqpage) )}}} was added to prevent querying for
page_id == 0, which happens when pagename is a slug & a the page is a
subpage (in that case, get_page_by_path() will fail)
* {{{if ('' != $q['name']) }}} block was moved after page/attachment
code to reduce duplicate code
--
Ticket URL: <http://trac.wordpress.org/ticket/6516#comment:6>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list