diff --git a/wp-includes/class-wp-customize.php b/wp-includes/class-wp-customize.php index 3129a27d5b..60dd9cc659 100644 --- a/wp-includes/class-wp-customize.php +++ b/wp-includes/class-wp-customize.php @@ -473,7 +473,7 @@ final class WP_Customize { $sections = array(); foreach ( $this->sections as $section ) { - if ( ! $section->check_capabilities() ) + if ( ! $section->check_capabilities() || ! $section->settings ) continue; usort( $section->settings, array( $this, '_cmp_priority' ) );