WordPress.org

Make WordPress Core

Ticket #19898: 19898.patch

File 19898.patch, 530 bytes (added by dcowgill, 21 months ago)
  • wp-includes/load.php

    diff --git wp-includes/load.php wp-includes/load.php
    index 1bb354e..aaf4476 100644
    function is_user_admin() { 
    637637} 
    638638 
    639639/** 
     640 * Whether the current request is for the login or register page 
     641 * 
     642 * @since 3.5.0 
     643 * 
     644 * @return bool True if on WordPress login or register page. 
     645 */ 
     646function is_login() { 
     647        return in_array( $GLOBALS['pagenow'], array( 'wp-login.php', 'wp-register.php' ) ); 
     648} 
     649 
     650/** 
    640651 * Whether Multisite support is enabled 
    641652 * 
    642653 * @since 3.0.0