[wp-trac] [WordPress Trac] #43403: Improve wp_add_inline_script()

WordPress Trac noreply at wordpress.org
Sat Feb 24 12:47:10 UTC 2018


#43403: Improve wp_add_inline_script()
---------------------------+-----------------------------
 Reporter:  alpipego       |      Owner:
     Type:  enhancement    |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Script Loader  |    Version:
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Just an idea for the moment:

 Instead of testing if the js has script tags and adding an error messages
 but also fixing the problem at the same time, why not accept both. If the
 passed data has tags just leave them (this would potentially fix #40276)
 and if not surround the code with plain `<script>` tags.

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


More information about the wp-trac mailing list