php - Cannot assign an empty string to a string offset WordPress 4.8.1 -


i getting warning:

cannot assign empty string string offset in /homepages/27/d653904259/htdocs/clickandbuilds/wp-inc‌​ludes/class.wp-scrip‌​ts.php on line 447

$l10n[$key] = html_entity_decode( (string) $value, ent_quotes, 'utf-8'); – j 

you can check inline; $value set or not:

  $l10n[$key] = html_entity_decode( (isset($value)) ? $value : 'default text or html here...', ent_quotes, 'utf-8'); 

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -