• Resolved mikkohirvonen

    (@mikkohirvonen)


    wpmuldap uses deprecated constant VHOST. Use SUBDIR_INSTALL instead. Fix could be

    diff --git a/wp-content/plugins/wpmuldap/lib/wpmu_ldap.functions.php b/wp-content/plugins/wpmuldap/lib/wpmu_ldap.functions.php
    index bb0cf133e..639518689 100644
    --- a/wp-content/plugins/wpmuldap/lib/wpmu_ldap.functions.php
    +++ b/wp-content/plugins/wpmuldap/lib/wpmu_ldap.functions.php
    @@ -62,7 +62,7 @@ function wpmuLdapCreateWPUserFromLdap($opts) {
    do_action('wpmu_activate_user', $user_id, $newUserPassword, false);

    $domain = strtolower( wp_specialchars( $newUserName ) );
    - if( constant( "VHOST" ) == 'yes' ) {
    + if( constant( "SUBDOMAIN_INSTALL" ) === True ) {^M
    $newdomain = $domain . "." . $current_site->domain;
    $path = $base;
    }

The topic ‘Constant VHOST is deprecated’ is closed to new replies.