Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #30494, comment 3


Ignore:
Timestamp:
12/26/2014 06:58:16 AM (9 years ago)
Author:
dallaslu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30494, comment 3

    initial v1  
     1I am using:
     2
     3
    14{{{
    25function useso_take_over_google_is_login_page() {
    3         return in_array($GLOBALS['pagenow'], array('wp-login.php', 'wp-register.php'));
     6        //global $pagenow;
     7        return in_array($_SERVER['PHP_SELF'], array('/wp-login.php', '/wp-register.php'));
    48}
    59}}}
    610
    7 this function will never return true.
     11It works.