• Resolved santiazpi2

    (@santiazpi2)


    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 or a ? b : (c ? d : e) in […]/wp-content/plugins/admin-bar-user-switching/functions/abus-core-functions.php on line 14

    Error 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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Update pluggin – Deprecated coce’ is closed to new replies.