[wp-trac] [WordPress Trac] #13125: ?p=xxx no longer redirects to ?page_id=xxx for Pages

WordPress Trac wp-trac at lists.automattic.com
Mon May 3 08:27:08 UTC 2010


#13125: ?p=xxx no longer redirects to ?page_id=xxx for Pages
------------------------------+---------------------------------------------
 Reporter:  ryan              |        Owner:  markjaquith
     Type:  defect (bug)      |       Status:  reopened   
 Priority:  normal            |    Milestone:  3.0        
Component:  Canonical         |      Version:  3.0        
 Severity:  normal            |   Resolution:             
 Keywords:  has-patch tested  |  
------------------------------+---------------------------------------------

Comment(by solarissmoke):

 Patch to check for revisions - although:

 Are post revisions ever meant to be directly accessible? (the only way I
 can currently find to access them is through the diff viewer). If not,
 then link-template.php could be modified to check for this along with
 drafts/auto-drafts/pending:

 Line 117
 {{{
 if ( '' != $permalink && !in_array($post->post_status, array('draft',
 'pending', 'auto-draft')) && 'revision' != $post->post_type )
 }}}

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


More information about the wp-trac mailing list