diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/class-wp-customize-panel.php --- a/wp/wp-includes/class-wp-customize-panel.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/class-wp-customize-panel.php Fri Sep 05 18:40:08 2025 +0200 @@ -16,6 +16,7 @@ * * @see WP_Customize_Manager */ +#[AllowDynamicProperties] class WP_Customize_Panel { /** @@ -72,7 +73,7 @@ * Theme features required to support the panel. * * @since 4.0.0 - * @var string|string[] + * @var mixed[] */ public $theme_supports = ''; @@ -146,7 +147,7 @@ * of panels and sections. Default 160. * @type string $capability Capability required for the panel. * Default `edit_theme_options`. - * @type string|string[] $theme_supports Theme features required to support the panel. + * @type mixed[] $theme_supports Theme features required to support the panel. * @type string $title Title of the panel to show in UI. * @type string $description Description to show in the UI. * @type string $type Type of the panel. @@ -241,7 +242,7 @@ return false; } - if ( $this->theme_supports && ! current_theme_supports( ... (array) $this->theme_supports ) ) { + if ( $this->theme_supports && ! current_theme_supports( ...(array) $this->theme_supports ) ) { return false; } @@ -347,7 +348,12 @@