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

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 24 06:29:44 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 Denis-de-Bernardy):

 Replying to [comment:11 DD32]:
 > > Can we not use get_queried_object_id() and pass that to
 get_permalink()?
 >
 > Yes, Yes we can. (Except that i'm not aware of the usage of function
 such as those :))

 Like this:

 {{{
 get_permalink($wp_query->get_queried_object_id());
 }}}

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


More information about the wp-trac mailing list