diff --git a/wp-includes/class-wp-customize-panel.php b/wp-includes/class-wp-customize-panel.php index 02c46ed695..6ec6cd55e0 100644 --- a/wp-includes/class-wp-customize-panel.php +++ b/wp-includes/class-wp-customize-panel.php @@ -232,10 +232,11 @@ class WP_Customize_Panel { * feature support required by the panel. * * @since 4.0.0 + * @since 5.9.0 Method was marked non-final. * * @return bool False if theme doesn't support the panel or the user doesn't have the capability. */ - final public function check_capabilities() { + public function check_capabilities() { if ( $this->capability && ! current_user_can( $this->capability ) ) { return false; } diff --git a/wp-includes/customize/class-wp-customize-nav-menus-panel.php b/wp-includes/customize/class-wp-customize-nav-menus-panel.php index c0d098bc7d..18328e5d3f 100644 --- a/wp-includes/customize/class-wp-customize-nav-menus-panel.php +++ b/wp-includes/customize/class-wp-customize-nav-menus-panel.php @@ -98,4 +98,27 @@ class WP_Customize_Nav_Menus_Panel extends WP_Customize_Panel {