[wp-trac] [WordPress Trac] #39078: Theme starter content pages 404 if multiple auto-drafts were saved

WordPress Trac noreply at wordpress.org
Mon Dec 5 19:38:18 UTC 2016


#39078: Theme starter content pages 404 if multiple auto-drafts were saved
-------------------------------------------------+-------------------------
 Reporter:  dlh                                  |       Owner:
     Type:  defect (bug)                         |  westonruter
 Priority:  high                                 |      Status:  closed
Component:  Customize                            |   Milestone:  4.7
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch has-unit-tests commit      |  Resolution:  fixed
  dev-reviewed                                   |     Focuses:
-------------------------------------------------+-------------------------

Comment (by westonruter):

 In [changeset:"39507"]:
 {{{
 #!CommitTicketReference repository="" revision="39507"
 Customize: Defer populating `post_name` for `auto-draft` posts in
 customized state until posts are published.

 The ultimate `post_name` is stored in postmeta until the post is
 published. The `get_page_by_path()` function does not exclude `auto-draft`
 posts. Revert changes to `wp_unique_post_slug()` from [39411] which
 excluded `auto-draft` posts.

 Props westonruter, dlh for testing, helen for testing.
 Merges [39506] onto 4.7 branch.
 Fixes #39078 for 4.7.
 }}}

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


More information about the wp-trac mailing list