Update pluggin – Deprecated coce
-
Hi, thank you so much for creating and maintaining this plugin, it is extremely useful. I use it in multiple up to date installations of WordPress and it is a life saver.
Lately I noticed an deprecation notice.
Deprecated: Unparenthesized
a ? b : c ? d : e
is deprecated. Use either(a ? b : c) ? d : e
ora ? b : (c ? d : e)
in […]/wp-content/plugins/admin-bar-user-switching/functions/abus-core-functions.php on line 14Error disappeared when the parenthesis added, so on line 14:
$s = empty( $_SERVER[ 'HTTPS' ] ) ? '' : ( ( $_SERVER[ 'HTTPS' ] == 'on' ) ? 's' : '' );
instead of
$s = empty( $_SERVER[ 'HTTPS' ] ) ? '' : ( $_SERVER[ 'HTTPS' ] == 'on' ) ? 's' : '';
An update will also make this plugin show up to date in www.remarpro.com, so it will be great too!
Thanks again
- The topic ‘Update pluggin – Deprecated coce’ is closed to new replies.