php 7.4 ?: depricate warning
-
Got a warning about chained ?: at line 14 in asyncjsDashboardScreens.php
Solved it with this patch:
diff -Nurp a/asyncjsDashboardScreens.php b/asyncjsDashboardScreens.php --- a/asyncjsDashboardScreens.php 2020-02-05 13:42:06.255359480 +0100 +++ b/asyncjsDashboardScreens.php 2020-02-05 13:41:52.763888109 +0100 @@ -11,7 +11,7 @@ $aj_enabled = ( get_option( 'aj_enabled' $aj_method = ( get_option( 'aj_method', 'async' ) == 'async' ) ? 'Async' : 'Defer'; $aj_jquery = get_option( 'aj_jquery', 'async' ); $aj_jquery = ( $aj_jquery == 'same ' ) ? get_option( 'aj_method', 'async' ) : $aj_jquery; -$aj_jquery = ( $aj_jquery == 'async' ) ? 'Async' : ( $aj_jquery == 'defer' ) ? 'Defer' : 'Excluded'; +$aj_jquery = ( $aj_jquery == 'async' ) ? 'Async' : (( $aj_jquery == 'defer' ) ? 'Defer' : 'Excluded'); $aj_exclusions = get_option( 'aj_exclusions', '' ); $aj_plugin_exclusions = get_option( 'aj_plugin_exclusions', array() ); $aj_theme_exclusions = get_option( 'aj_theme_exclusions', array() );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘php 7.4 ?: depricate warning’ is closed to new replies.