WordPress.org

Make WordPress Core

Ticket #52003: 52003.patch

File 52003.patch, 610 bytes (added by engahmeds3ed, 10 months ago)

Simply use one isset with two arguments

  • src/wp-includes/user.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    a b  
    463463        }
    464464
    465465        // Check that we're trying to authenticate
    466         if ( ! isset( $_SERVER['PHP_AUTH_USER'] ) ) {
     466        if ( ! isset( $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] ) ) {
    467467                return $input_user;
    468468        }
    469469