[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
Thu Mar 17 00:40:33 UTC 2022


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

Comment (by peterwilsoncc):

 This was discussed in the
 [https://wordpress.slack.com/archives/C02RQBWTW/p1647464545410199 dev-chat
 in Slack earlier]. In an earlier comment additional conflicts are
 mentioned so it would be good to have each of these investigated too so
 the bug is fixed rather than half a bug.

 There are a number of [https://wordpress.org/support/article/using-
 permalinks/#structure-tags-1 structure tags] available on the permalinks
 screen, some notes on collisions for each would be valuable:

 * content slugs matching a custom post type's slug
 * pages with an apparent date structure: `/2022/some-page` (also consider
 months, days, etc)
 * including uncommon components such as author, category

 Setting up a pull requests with some initially broken tests would be most
 helpful. If it's decided that some items aren't in scope, then follow up
 tickets can be created.

 Any changes would need to be made to the function `wp_unique_post_slug()`

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


More information about the wp-trac mailing list