Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21025, comment 7


Ignore:
Timestamp:
06/26/2012 09:29:57 PM (13 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21025, comment 7

    initial v1  
    1 If we are going to continue supporting "bad" plugins, wouldn't it be better to abstract this
    2 
    3 {{{
    4 did_action( 'init' ) && $scripts->localize( 'handle', 'handleL10n', array(...) );
    5 }}}
    6 
    7 into another method? So add `localise_on_init()` or similar to WP_Scripts and call that from script-loader.
     1Oops, wrong ticket.