[wp-trac] [WordPress Trac] #12066: Typo in canonical.php causes E_NOTICE, hinders query vars

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 28 11:12:39 UTC 2010


#12066: Typo in canonical.php causes E_NOTICE, hinders query vars
--------------------------+-------------------------------------------------
 Reporter:  nacin         |       Owner:  markjaquith
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  Canonical     |     Version:             
 Severity:  normal        |    Keywords:  has-patch  
--------------------------+-------------------------------------------------
 Typo in canonical.php, patch attached.

 A simple {{{?author=1}}} would generate an E_NOTICE which then prevents
 headers from being sent.

 This does affect functionality but it's more rare. Under a typical
 permalink setup, {{{/?author=1&blah=2}}} should redirect to
 {{{/author/admin/?blah=2}}}. Instead, {{{blah=2}}} is left off since when
 it comes time to check {{{$redirect['query']}}} there's nothing to append.

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


More information about the wp-trac mailing list