title: wp_localize_script: why is it called localization while it is actually creating a global variable?
body: <p>I am trying to understand <code>wp_localize_script</code> and did the test below:</p>
  <pre><code>wp_register_script('test',get_stylesheet_directory_uri() . '/js/test.js',['jquery']);
  wp_localize_script('test','TEST',
      array(
              'wsk' =&gt; 'asdn'
      )
  );
  wp_enqueue_script( 'test');
  </code></pre>
  <p>And in test.js I put</p>
  <pre><code>jQuery(document).ready(function(){
    console.log(TEST);
  })
  </code></pre>
  <p>When I load the page, it can output the value of <code>TEST</code> in the console. What I don't understand is, why is it called &quot;localize&quot;? Because there is actually a global variable TEST created.</p>