[wp-trac] [WordPress Trac] #20424: wp_localize_script escapes url string.

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 12 08:40:37 UTC 2012


#20424: wp_localize_script escapes url string.
--------------------------+------------------------------
 Reporter:  DennisSmolek  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.3.1
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by DennisSmolek):

 I discovered what the issue is.
 The example given doesn't mention firing the code on any specific hook so
 it fires just on load plugins, which causes the slashes. If I move the
 code to wp_head it acts as expected. I realized the fix when I stopped
 ignoring the new debug notices.

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


More information about the wp-trac mailing list