Deprecated: preg_replace():
Passing null to parameter #3 ($subject) of type array|string is deprecated
in /wp/wp-includes/kses.php on line 1745 [$ /usr/local/bin/wp plugin list]
[
wp-includes/kses.php:1745 preg_replace(),
wp-includes/kses.php:752 wp_kses_no_null(),
wp-includes/kses.php:2172 wp_kses(),
wp-content/plugins/the-events-calendar-category-colors/src/Category_Colors/CSS/Extras.php:164,
...
Changing the "empty" value to '' fixes this by ensuring the default is a string throughout.
wp_kses()
(used here throughwp_kses_post()
is typed to receive a "array|string". Passing NULL causes a deprecation warning,Changing the "empty" value to
''
fixes this by ensuring the default is a string throughout.