[wp-trac] Re: [WordPress Trac] #3911: Javascript should not be localized by via PHP

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 5 23:22:11 GMT 2007


#3911: Javascript should not be localized by via PHP
-----------------------------------+----------------------------------------
 Reporter:  mdawaffe               |        Owner:  mdawaffe
     Type:  defect                 |       Status:  assigned
 Priority:  high                   |    Milestone:  2.2     
Component:  Optimization           |      Version:  2.1.2   
 Severity:  normal                 |   Resolution:          
 Keywords:  has-patch 2nd-opinion  |  
-----------------------------------+----------------------------------------
Changes (by mdawaffe):

  * keywords:  => has-patch 2nd-opinion
  * status:  new => assigned
  * owner:  anonymous => mdawaffe

Comment:

 3911.diff
 To apply
  1. svn mv wp-includes/js/list-manipulation-js.php wp-includes/js/list-
 manipulation.js

 Features
  1. wp_localize_script( script_name, JS object_name, array( JS val =>
 localized string )  See listman example in new script-loader.php

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3911#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list