Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Warning: Cannot assign an empty string to a string offset in wp-includes/class.wp-scripts.php on line 447
- The developers just need to add an !empty conditional for $value around line 443… I.e:
- foreach ( (array) $l10n as $key => $value ) {
- if ( !is_scalar($value) )
- continue;
- $l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8');
- }
- to...
- foreach ( (array) $l10n as $key => $value ) {
- if ( !is_scalar($value) )
- continue;
- if (!empty($value)) {
- $l10n[$key] = html_entity_decode( (string) $value, ENT_QUOTES, 'UTF-8');
- }
- }
- sumber:
- https://wordpress.org/support/topic/warning-cannot-assign-an-empty-string-to-a-string-offset-2/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement