Make WordPress Core

Changes between Initial Version and Version 2 of Ticket #38539


Ignore:
Timestamp:
10/28/2016 04:15:35 AM (8 years ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #38539

    • Property Keywords has-patch needs-unit-tests added
    • Property Owner set to westonruter
    • Property Status changed from new to accepted
    • Property Summary changed from Auto-draft posts/pages inserted from starter content lack slugs to Post/page stubs fail to get unique slugs
  • Ticket #38539 – Description

    initial v2  
    11I noticed that after initializing Twenty Seventeen all of the Top nav menu items all linked to the homepage. It turns out that the `auto-draft` status post/page stubs were not getting a `post_name` specified and so the permalink for them would point to the homepage.
     2
     3Likewise, when adding new nav menu items, I'm able to supply titles which then result in pages/posts that have the same `post_name` as other items. This is due to `wp_publish_posts()` being used which bypasses the unique slug check.