| | 29 | |
| | 30 | '''EDIT: I took a look at wp_default_scripts''' |
| | 31 | {{{ |
| | 32 | // jQuery |
| | 33 | $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ) ); |
| | 34 | $scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.9.1' ); |
| | 35 | $scripts->add( 'jquery-migrate', '/wp-includes/js/jquery/jquery-migrate.js', array(), '1.1.1' ); |
| | 36 | }}} |
| | 37 | |
| | 38 | And noticed the jquery handle is really just a alias for jquery-core, and found this works as expected. |
| | 39 | {{{ |
| | 40 | wp_localize_script( 'jquery-core', 'myvars', array( 'foo' => 'bar' ) ); |
| | 41 | }}} |