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

WordPress Trac noreply at wordpress.org
Fri Apr 25 21:30:05 UTC 2014


#25280: wp_localize_script unexpectedly converts numbers to strings
-----------------------------+------------------
 Reporter:  adamsilverstein  |       Owner:
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  4.0
Component:  I18N             |     Version:  3.2
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------

Comment (by c3mdigital):

 As per discussion with @nacin,
 [https://core.trac.wordpress.org/attachment/ticket/25280/2580.3.patch
 2580.3.patch] changes "if" check to only pass strings to
 `html_entity_decode()` and removes cast to string.

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


More information about the wp-trac mailing list