[wp-trac] [WordPress Trac] #38928: Default theme content - problem with slugs

WordPress Trac noreply at wordpress.org
Fri Dec 2 00:25:49 UTC 2016


#38928: Default theme content - problem with slugs
-------------------------------------------------+-------------------------
 Reporter:  pavelevap                            |       Owner:
     Type:  defect (bug)                         |  westonruter
 Priority:  normal                               |      Status:  closed
Component:  Customize                            |   Milestone:  4.7
 Severity:  normal                               |     Version:  trunk
 Keywords:  has-patch needs-testing has-unit-    |  Resolution:  fixed
  tests commit dev-reviewed                      |     Focuses:
-------------------------------------------------+-------------------------

Comment (by westonruter):

 In [changeset:"39412"]:
 {{{
 #!CommitTicketReference repository="" revision="39412"
 Customize: Reuse existing non-auto-draft posts and existing auto-draft
 posts in the customized state with matching slugs when applying starter
 content.

 * Updates `wp_unique_post_slug()` to ignore `auto-draft` posts. Prevents
 publishing multiple posts that have the same slugs from starter content.
 * Fixes fatal error when attempting to save an header_image setting from a
 non-admin context.
 * Fixes substituting attachment symbols in options and theme mods.
 * Fixes applying starter content for header images and background images.

 Merges [39411] to 4.7 branch.
 See #38114.
 Fixes #38928 for 4.7.
 }}}

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


More information about the wp-trac mailing list