[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:32:13 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:
-------------------------------------------------+-------------------------
Changes (by westonruter):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39506"]:
 {{{
 #!CommitTicketReference repository="" revision="39506"
 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.
 See #38114, #38928.
 Fixes #39078.
 }}}

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


More information about the wp-trac mailing list