Make WordPress Core

Changes between Version 4 and Version 5 of Ticket #31281, comment 9


Ignore:
Timestamp:
04/16/2016 10:36:55 PM (9 years ago)
Author:
ChriCo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31281, comment 9

    v4 v5  
    1 Shouldn't we implement a similar (working) function for {{{wp_add_inline_style() }}} to add '''scripts'''?
     1Shouldn't we implement a similar (working) function for {{{wp_add_inline_style() }}} to add '''styles'''?
    22
    33Currently it is not possible via {{{ wp_enqueue_script() }}} to add '''inline''' Scripts. It's only possible by using the {{{ wp_head/footer }}}-Action and adding it inline with a {{{ <script> }}}-Tag. Maybe we should switch from unflexible 5 parameters to a list (array, or better: class) and adding a param for {{{"is_inline" => true|false}}}?