[wp-trac] [WordPress Trac] #38830: Customize: Prevent adding edit shortcuts to partial placement containers that cannot contain interactive element children

WordPress Trac noreply at wordpress.org
Wed Nov 16 18:48:49 UTC 2016


#38830: Customize: Prevent adding edit shortcuts to partial placement containers
that cannot contain interactive element children
--------------------------+-----------------
 Reporter:  westonruter   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.7
Component:  Customize     |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 In working on #38672 to allow Jetpack to extend Custom CSS to use a pre-
 processor, the `style` element in the `head` is turned into a selective
 refresh partial placement. Now with #27403 there are edit shortcut buttons
 that get injected into the container elements for such partial placements.
 In the case of a `style` element, however, it is illegal for it to take
 child elements. Not only can it cause the CSS to no longer render but also
 the `style` element is in the `head` and cannot be displayed anyway, so it
 makes no sense to inject an edit shortcut.

 For more (including a workaround), see
 https://wordpress.slack.com/archives/core-customize/p1479239811000710

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38830>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list