@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | add_action( |
61 | 61 | 'admin_menu', |
62 | - function () use ( $black_friday_menu_label ) { |
|
62 | + function() use ( $black_friday_menu_label ) { |
|
63 | 63 | add_submenu_page( 'formidable', 'Formidable', $black_friday_menu_label, 'frm_change_settings', 'formidable-black-friday', 'FrmAppController::redirect_blackfriday' ); |
64 | 64 | }, |
65 | 65 | 1000 |
@@ -1413,15 +1413,15 @@ discard block |
||
1413 | 1413 | global $wp_filter; |
1414 | 1414 | |
1415 | 1415 | foreach ( $actions as $action ) { |
1416 | - if ( empty( $wp_filter[ $action ]->callbacks ) ) { |
|
1416 | + if ( empty( $wp_filter[$action]->callbacks ) ) { |
|
1417 | 1417 | continue; |
1418 | 1418 | } |
1419 | - foreach ( $wp_filter[ $action ]->callbacks as $priority => $callbacks ) { |
|
1419 | + foreach ( $wp_filter[$action]->callbacks as $priority => $callbacks ) { |
|
1420 | 1420 | foreach ( $callbacks as $callback_name => $callback ) { |
1421 | 1421 | if ( self::is_our_callback_string( $callback_name ) || self::is_our_callback_array( $callback ) ) { |
1422 | 1422 | continue; |
1423 | 1423 | } |
1424 | - unset( $wp_filter[ $action ]->callbacks[ $priority ][ $callback_name ] ); |
|
1424 | + unset( $wp_filter[$action]->callbacks[$priority][$callback_name] ); |
|
1425 | 1425 | } |
1426 | 1426 | } |
1427 | 1427 | } |