[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 07:25:44 UTC 2018


#43593: Permalink setting of /%postname%/ appends -2 to all posts without titles
----------------------------+-----------------------------
 Reporter:  micasuh         |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Permalinks      |    Version:  4.9.5
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Using a permalink structure of only {{{/%postname%/}}}, it is not possible
 to create a post without a title which uses a slug without {{{-2}}}.

 In other words, because I choose to use only {{{/%postname%/}}}, WordPress
 is forcing un-titled post slugs to default to the Post ID and appends
 {{{-2}}} on every saved or published post that does not have a title as
 the auto-generated slug.

 My only alternative, which I’m trying to avoid, is to manually create a
 slug for posts that do not have titles.

 More discussion here: https://wordpress.org/support/topic/use-two-
 permalink-structures-at-the-same-time

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


More information about the wp-trac mailing list