diff --git src/wp-includes/load.php src/wp-includes/load.php
index 2c63c6b277..4f4615715b 100644
|
|
function is_admin() { |
999 | 999 | return false; |
1000 | 1000 | } |
1001 | 1001 | |
| 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 | */ |
| 1012 | function is_login_screen() { |
| 1013 | return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME'] ); |
| 1014 | } |
| 1015 | |
1002 | 1016 | /** |
1003 | 1017 | * Whether the current request is for a site's admininstrative interface. |
1004 | 1018 | * |