[wp-trac] [WordPress Trac] #20902: redirect_canonical() on using permalink: Not all $_GET being redirected

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 11 09:30:09 UTC 2012


#20902: redirect_canonical() on using permalink: Not all $_GET being redirected
--------------------------+-----------------------------
 Reporter:  arieputranto  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Permalinks    |    Version:  3.4
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 Using permalink, I suppose that all query_var entered manually on URL or
 using $_GET will be redirected to proper permalink. Apparently not all
 being redirected at all. AFAIC:

 1. /?post_format=image : should be redirected to /type/image/
 2. /?pagename=blog : should be redirected to /blog/
 3. /?author_name=admin : should be redirected to /author/admin/

 Unfortunately, they are not.

 It can be done by filtering redirect_canonical() but it will be better  if
 it's being done by default as we can see that /?category_name=cat will be
 redirected to /category/cat/

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20902>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list