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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -