Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tbjornli

    (@tbjornli)

    The reason for the problem is that get_user_id_from_string has been deprecated.

    Below is a fix that solves this problem.

    352c352
    < $user_id = is_wp_error( $user ) ? get_user_id_from_string( $user->user_login ) : null;
    ---
    > $user_id = $user->ID;

    The if/else statement is unnecessary since it’s executed again on the next line of the code.

    $user_id = $user->ID;
    
    if ( is_wp_error( $user ) ||

    I’ve been using the plugin for quite some time, but lately, due to the comparability issues with the newer WordPress versions, I had to figure out a solution.

    In my case, where I have access to the server WordPress is hosted on I ended up by redirecting all traffic from HTTP to HTTPS through the VirtualHost.

    <VirtualHost *:80>
        ServerAdmin [email protected]
        ServerName domain.tld
        ServerAlias www.domain.tld
    
        RedirectMatch permanent ^/(.*) https://domain.tld/$1
    </VirtualHost>

    It solved my issue and everything runs fine without the HTTPS plugin.

    In my opinion, this is something that WordPress should implement natively.
    HTTPS in a multisite environment must be very common now a days.

    Can someone please call WordPress Foundation and ask them to implement this? ??

Viewing 3 replies - 1 through 3 (of 3 total)