[wp-hackers] Creating alias for wp_localize_script()

Lutz Schröer latz at elektroelch.de
Sun Jul 31 09:42:46 UTC 2011


On Tue, 26 Jul 2011 11:08:31 -0700, Andrew Ozz wrote:
> Already in trunk, see http://core.trac.wordpress.org/changeset/18464

As I saw in changeset 18490 that wp_add_script_data() was dropped again 
and the function wp_localize_script() was resurrected "for historical 
reasons".

What about my proposal to just add an alias for wp_localize_script() 
for the reasons mentioned in my first posting? For people new to 
WordPress programming this would make it easier to find the right 
function.

lutz


More information about the wp-hackers mailing list