[wp-trac] [WordPress Trac] #43593: Permalink setting of /%postname%/ appends -2 to all posts without titles

WordPress Trac noreply at wordpress.org
Wed Mar 21 08:21:09 UTC 2018


#43593: Permalink setting of /%postname%/ appends -2 to all posts without titles
--------------------------+-----------------------------
 Reporter:  micasuh       |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Permalinks    |     Version:  4.9.5
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:  administration
--------------------------+-----------------------------

Comment (by micasuh):

 Would you consider {{{/%post_id%/}}} to be numeric slugs?

 I tested changing permalinks with the setting above and it was exactly
 what I expected for the slugs, which was using the Post ID as the slug,
 going up in numeric order. It even worked perfectly, as I was expecting
 with posts without a title.

 Permalinks perform a check for duplicate slugs and will append {{{-2}}} if
 that exists, I understand that. But for WordPress installs that use the
 {{{/&postname&/}}} setting, it seems reasonable that posts with no title
 could use the same structure that {{{/%post_id%/}}} provides, which
 appears to be the Post ID in numeric order.

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


More information about the wp-trac mailing list