[wp-trac] [WordPress Trac] #8100: Redirection problem with tags ending in 'p'

WordPress Trac wp-trac at lists.automattic.com
Sat Nov 8 01:10:21 GMT 2008


#8100: Redirection problem with tags ending in 'p'
----------------------+-----------------------------------------------------
 Reporter:  fitztrev  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:  2.7      
Component:  General   |     Version:           
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 When not using permalinks, you cannot access the tag page of any tags
 ending in 'p'.

 !http://localhost/?tag=tip is redirecting to !http://localhost/?tag=ti

 The problem lies with line !#207 of wp-inc/canonical.php.

 `$redirect['query'] = preg_replace( '#&?(p|page_id|cat|tag)=?$#', '',
 $redirect['query'] );`

 I am not entirely sure what else the line accomplishes so I won't try to
 change the regex out of fear of breaking something else.

 (per discussion on wp-testers)

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


More information about the wp-trac mailing list