[wp-trac] [WordPress Trac] #13459: Conflict between post and page slugs/permalinks when permalink setting is set to /%postname%/

WordPress Trac noreply at wordpress.org
Tue Dec 8 13:11:27 UTC 2015


#13459: Conflict between post and page slugs/permalinks when permalink setting is
set to /%postname%/
--------------------------+-----------------------------
 Reporter:  jamescollins  |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  Future Release
Component:  Permalinks    |     Version:  2.9.2
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Seems like `'/%postname%/' === $wp_rewrite->permalink_structure` won't
 catch a static prefix, e.g. `'/blog/%postname%/'`. Would that still cause
 a conflict if there's a blog page with subpages?

 Perhaps the `preg_match()` check from [35679] could be used.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/13459#comment:46>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list