diff --git wp-includes/load.php wp-includes/load.php
index 1742af4..80441f3 100644
|
|
|
function is_admin() { |
| 592 | 592 | } |
| 593 | 593 | |
| 594 | 594 | /** |
| | 595 | * Whether the current request is for the login or register pages |
| | 596 | * |
| | 597 | * @since 3.6 |
| | 598 | * |
| | 599 | * return bool True if on the login/register page |
| | 600 | */ |
| | 601 | function is_login() { |
| | 602 | return !empty($GLOBALS['pagenow']) && in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php')); |
| | 603 | } |
| | 604 | |
| | 605 | /** |
| 595 | 606 | * Whether the current request is for a blog admin screen /wp-admin/ |
| 596 | 607 | * |
| 597 | 608 | * Does not inform on whether the user is a blog admin! Use capability checks to |