diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/class-wp-customize-widgets.php --- a/wp/wp-includes/class-wp-customize-widgets.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/class-wp-customize-widgets.php Fri Sep 05 18:40:08 2025 +0200 @@ -16,6 +16,7 @@ * * @see WP_Customize_Manager */ +#[AllowDynamicProperties] final class WP_Customize_Widgets { /** @@ -822,7 +823,7 @@ ); foreach ( $settings['registeredWidgets'] as &$registered_widget ) { - unset( $registered_widget['callback'] ); // May not be JSON-serializeable. + unset( $registered_widget['callback'] ); // May not be JSON-serializable. } $wp_scripts->add_data( @@ -890,7 +891,12 @@
+ +