[wp-trac] [WordPress Trac] #15082: Custom post type empty slug breaks permalinks for pages

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 9 16:59:14 UTC 2010


#15082: Custom post type empty slug breaks permalinks for pages
--------------------------+-------------------------------------------------
 Reporter:  firebird75    |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Post Types    |     Version:  3.0.1          
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 If I register a custom post type using the register_post_type function and
 I pass the following parameter :

 rewrite => array('slug' => '')

 If the blog permalink structure is set to /%postname%/, then it breaks the
 rewriting rules for pages (post of type page). They return a 404 error
 when you try to open it. You need to save at least one page after having
 registered the custom post type to see the issue.

 Setting the custom post type slug to the value '' is made to have custom
 post type permalink structure match the blog permalink structure (ie only
 /%postname%/ in the url).

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


More information about the wp-trac mailing list