[wp-trac] [WordPress Trac] #25280: wp_localize_script unexpectedly converts numbers to strings

WordPress Trac noreply at wordpress.org
Wed Jan 15 15:43:13 UTC 2014


#25280: wp_localize_script unexpectedly converts numbers to strings
-------------------------------------------------+-------------------------
 Reporter:  adamsilverstein                      |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  I18N                                 |  Review
 Severity:  normal                               |     Version:  3.2
 Keywords:  has-patch dev-feedback needs-        |  Resolution:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by tomauger):

 I kind of blew my mind when I started modeling how to create a tighter
 coupling between PHP and JS, particularly in such a way that modern IDEs
 (I use Netbeans, for example) would be able to pick up on the dependencies
 and perhaps even offer code completion. At the moment, I can't think of
 anything more innovative than a spin-off of wp_localize_script(), which is
 frankly a pretty user-friendly way of communicating between the two
 "worlds".

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


More information about the wp-trac mailing list