[wp-trac] [WordPress Trac] #52745: WP_Scripts::localize was called incorrectly
    WordPress Trac 
    noreply at wordpress.org
       
    Wed Mar 10 05:49:41 UTC 2021
    
    
  
#52745: WP_Scripts::localize was called incorrectly
---------------------------+-----------------------------
 Reporter:  theexamonline  |      Owner:  (none)
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  General        |    Version:  5.7
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 After updating my website (using newspaper theme) to wordpress version
 5.7, we got notice in my wp-admin panel.
 Notice: WP_Scripts::localize was called incorrectly. The $l10n parameter
 must be an array. To pass arbitrary data to scripts, use the
 wp_add_inline_script() function instead.
-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52745>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
    
    
More information about the wp-trac
mailing list