Warning in class-wp-theme-json.php
-
After updating to 5.8 I get the following warning when editing a page:
Warning: Invalid argument supplied for foreach() in /path/to/wordpress/wp-includes/class-wp-theme-json.php on line 1203
If I
var_dump
the$font_sizes
variable I getbool(true)
.I do have the following code in my functions.php (not sure if that has something to do with it):
add_action('after_setup_theme', function () { add_theme_support('disable-custom-font-sizes'); add_theme_support('editor-font-sizes'); });
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Warning in class-wp-theme-json.php’ is closed to new replies.