[wp-trac] [WordPress Trac] #15140: When page permalinks change, we should 301 redirect like with posts

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 19 07:33:53 UTC 2010


#15140: When page permalinks change, we should 301 redirect like with posts
-------------------------+--------------------------------------------------
 Reporter:  jorbin       |        Owner:  nacin   
     Type:  enhancement  |       Status:  reopened
 Priority:  normal       |    Milestone:  3.1     
Component:  Canonical    |      Version:          
 Severity:  normal       |   Resolution:          
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by dd32):

 I realised this morning, That I didn't limit the redirection to posts of
 the same post type as being requested..

 Potential thoughts of mine:
  * Request ALL matching records, foreach ($post ) { if ( compare post type
 ) { redirect;break; } }
  * JOIN in SQL, seems overkill.

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


More information about the wp-trac mailing list