Skip to content

Commit 2fce820

Browse files
committed
Fix
1 parent 521f50c commit 2fce820

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

includes/forms/form-customizer.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,7 @@ public function settings( $customizer ) {
172172
// vars
173173
$id = $setting->id;
174174
// Only process widget and nav_menu settings
175-
// Skip all other setting types
176-
$is_widget = 'widget' === substr( $id, 0, 6 );
177-
$is_nav_menu = 'nav_menu' === substr( $id, 0, 8 );
178-
179-
if ( ! $is_widget && ! $is_nav_menu ) {
175+
if ( 'widget' !== substr( $id, 0, 6 ) && 'nav_menu' !== substr( $id, 0, 7 ) ) {
180176
continue;
181177
}
182178

0 commit comments

Comments
 (0)