[wp-trac] [WordPress Trac] #29722: wp_localize_script should be able to manage scalars
WordPress Trac
noreply at wordpress.org
Sat Aug 22 00:07:58 UTC 2020
#29722: wp_localize_script should be able to manage scalars
----------------------------------+------------------------------
Reporter: Fab1en | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Script Loader | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch needs-docs | Focuses: javascript
----------------------------------+------------------------------
Comment (by SergeyBiryukov):
Related: #48528, #51108.
Just noting that passing a string value to `wp_localize_script()` is now
causing a warning in PHP 8.0 Beta 2:
> `Warning: Only the first byte will be assigned to the string offset in
wp-includes/class.wp-scripts.php on line 492`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29722#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list