[wp-trac] [WordPress Trac] #26111: wp_localize_script array from callback for performance

WordPress Trac noreply at wordpress.org
Sun Apr 12 20:54:40 UTC 2015


#26111: wp_localize_script array from callback for performance
------------------------------------+-----------------------------
 Reporter:  ciantic                 |       Owner:  wonderboymusic
     Type:  enhancement             |      Status:  reopened
 Priority:  high                    |   Milestone:  4.2
Component:  Script Loader           |     Version:  2.6
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  performance
------------------------------------+-----------------------------

Comment (by jdgrimes):

 Replying to [comment:16 DrewAPicture]:
 > @wonderboymusic might have a better idea, but the best I can come up
 with would be a fourth parameter to toggle whether the third parameter
 should be considered callable. Not exactly elegant but would account for
 back-compat.

 That is what I had in mind as well.

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


More information about the wp-trac mailing list