You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Gutenberg 14.5.3 active on WordPress trunk, installing themes produces a Fatal Error in _wp_theme_has_theme_json_clean_cache_upon_upgrading_active_theme().
This is caused by the $accepted_args not being specified when hooking upgrader_process_complete.
In lib/compat/wordpress-6.2/default-filters.php, this line:
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function_wp_theme_has_theme_json_clean_cache_upon_upgrading_active_theme(), 1 passed in /wp-includes/class-wp-hook.php on line 310 and exactly 2 expected in src/wp-content/plugins/gutenberg/lib/compat/wordpress-6.2/get-global-styles-and-settings.php:67
Stack trace:
/wp-includes/class-wp-hook.php(310): _wp_theme_has_theme_json_clean_cache_upon_upgrading_active_theme()
/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
/wp-includes/plugin.php(517): WP_Hook->do_action()
/wp-admin/includes/class-wp-upgrader.php(875): do_action()
/wp-admin/includes/class-theme-upgrader.php(250): WP_Upgrader->run()
/wp-admin/includes/ajax-actions.php(4174): Theme_Upgrader->install( in /wp-content/plugins/gutenberg/lib/compat/wordpress-6.2/get-global-styles-and-settings.php on line 67
Environment info
Server: Apache (Linux)
WordPress: 6.2-alpha-54642-src
Browser: Chrome 107.0.0.0
OS: Windows 10
Theme: Twenty Twenty-Two
Plugins:
Gutenberg 14.5.3
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered:
Description
With Gutenberg 14.5.3 active on WordPress
trunk
, installing themes produces a Fatal Error in_wp_theme_has_theme_json_clean_cache_upon_upgrading_active_theme()
.This is caused by the
$accepted_args
not being specified when hookingupgrader_process_complete
.In
lib/compat/wordpress-6.2/default-filters.php
, this line:Should be:
Introduced in #45543.
Step-by-step reproduction instructions
Appearance > Themes > Add New
.Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: