[wp-trac] [WordPress Trac] #11879: Redirect in merged files instead of pure deletion?

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 12 17:30:12 UTC 2010


#11879: Redirect in merged files instead of pure deletion?
-------------------------+--------------------------------------------------
 Reporter:  TobiasBg     |       Owner:  ryan        
     Type:  enhancement  |      Status:  new         
 Priority:  normal       |   Milestone:  3.0         
Component:  Multisite    |     Version:              
 Severity:  normal       |    Keywords:  dev-feedback
-------------------------+--------------------------------------------------
 Just a quick though that crossed my mind:

 With the recent merging of files into other files, due to the Custom Post
 Typoes support (i.e. [12708], [12702] and more from #9674), several files
 like page.php, page-new.php have been deleted.

 This could potentially break backward compatibility for some plugins that
 link to these files (i.e. a plugin that has a link to "create a new
 page").

 My suggestion: Instead of plain deleting them, they could be reduced to
 something like a PHP redirect (header()) to the correct new page (with
 passed parameters from the query string conserved).
 I.e. page.php could contain a header redirect to
 post.php?post_type=page(+rest of query string).)

 At the same time the redirect should be marked as deprecated, so that
 noboby will set new links to it, but use the correct new file.

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


More information about the wp-trac mailing list