[wp-trac] Re: [WordPress Trac] #6516: canonical redirect doesn't redirect ?name=slug

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 23 19:57:24 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              |    Keywords:  has-patch needs-testing
-------------------------------+--------------------------------------------

Comment(by ryan):

 is_single() and is_page() mean we requested a single object.  Can we not
 use  get_queried_object_id() and pass that to get_permalink()?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/6516#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list