WordPress.org

Make WordPress Core

Ticket #19898: 19898.6.diff

File 19898.6.diff, 662 bytes (added by donmhico, 2 years ago)
  • src/wp-includes/load.php

    diff --git src/wp-includes/load.php src/wp-includes/load.php
    index 2c63c6b277..4f4615715b 100644
    function is_admin() { 
    999999        return false;
    10001000}
    10011001
     1002/**
     1003 * Determines whether the current request is for the login screen.
     1004 *
     1005 * @since 5.3.0
     1006 *
     1007 * @see wp_login_url()
     1008 * @global string $_SERVER['SCRIPT_NAME'] The absolute pathname of the currently executing script.
     1009 *
     1010 * @return boolean
     1011 */
     1012function is_login_screen() {
     1013        return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME'] );
     1014}
     1015
    10021016/**
    10031017 * Whether the current request is for a site's admininstrative interface.
    10041018 *