@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | |
123 | 123 | // Dequeue other jQuery styles even if no-conflict is off. |
124 | 124 | // Terrible-looking tabs help no one. |
125 | - if( !empty( $wp_styles->registered ) ) { |
|
125 | + if( !empty( $wp_styles->registered ) ) { |
|
126 | 126 | foreach ($wp_styles->registered as $key => $style) { |
127 | 127 | if( preg_match( '/^(?:wp\-)?jquery/ism', $key ) ) { |
128 | 128 | wp_dequeue_style( $key ); |
@@ -205,8 +205,8 @@ discard block |
||
205 | 205 | |
206 | 206 | //unregistering scripts |
207 | 207 | $registered = array(); |
208 | - foreach( $wp_objects->registered as $handle => $script_registration ){ |
|
209 | - if( in_array( $handle, $required_objects ) || preg_match( $allow_regex, $handle ) ){ |
|
208 | + foreach( $wp_objects->registered as $handle => $script_registration ) { |
|
209 | + if( in_array( $handle, $required_objects ) || preg_match( $allow_regex, $handle ) ) { |
|
210 | 210 | $registered[ $handle ] = $script_registration; |
211 | 211 | } |
212 | 212 | } |