Support » Plugin: Admin Bar User Switching » Deprecated feature.

  • Hello,

    Just reporting an issue with PHP 7.4.
    [16-Jul-2020 21:20:28 UTC] PHP Deprecated: Unparenthesized a ? b : c ? d : e is deprecated.
    Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) in /httpdocs/wp-content/plugins/admin-bar-user-switching/functions/abus-core-functions.php on line 14

    
    $s = (empty( $_SERVER[ 'HTTPS' ] ) ? '' : (( $_SERVER[ 'HTTPS' ] == 'on' ) ? 's' : '')); // FIX.
        //$s = empty( $_SERVER[ 'HTTPS' ] ) ? '' : ( $_SERVER[ 'HTTPS' ] == 'on' ) ? 's' : '';

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Confirming that this is not fixed yet:

    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

    Confirming that this is not fixed yet.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.