[wp-trac] [WordPress Trac] #37156: Multisite: WP-generated permalink for title-less post does not work (Or: numeric post slug that matches existing post ID number generates 404 error)

WordPress Trac noreply at wordpress.org
Sun Jan 18 05:54:33 UTC 2026


#37156: Multisite: WP-generated permalink for title-less post does not work (Or:
numeric post slug that matches existing post ID number generates 404 error)
--------------------------------+------------------------------
 Reporter:  raskull             |       Owner:  (none)
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  Awaiting Review
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:  invalid
 Keywords:  close               |     Focuses:  multisite
--------------------------------+------------------------------
Changes (by sajib1223):

 * keywords:  needs-testing => close
 * status:  new => closed
 * resolution:   => invalid


Comment:

 == Reproduction Report
 === Description
 This report validates whether the issue can be reproduced.

 === Environment
 - WordPress: 6.9
 - PHP: 8.3.29
 - Server: PHP.wasm
 - Database: WP_SQLite_Driver (Server: 8.0.38 / Client: 3.51.0)
 - Browser: Firefox 147.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-Five 1.4
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.1

 === Actual Results
 1.  ✅ Unable to reproduce — The reported issue does not occur in this
 environment.

 === Additional Notes

 When creating posts with empty titles:

 - Permalink structure `/%postname%/`: WordPress automatically appends a -2
 suffix to the slug (ie: https://example.com/6-2/). Permalink functions
 correctly.
 - Permalink structure `/blog/%postname%/`: WordPress does not append a -2
 suffix to the slug (ie: https://example.com/blog/6/). Permalink still
 functions correctly.

 Both permalink configurations handle empty post titles without errors.

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


More information about the wp-trac mailing list