• Resolved Ducktales

    (@ducktales)


    A notice is displayed in debug mode when ‘pagenow’ is not yet set.

    To resolve, in two-factor-login.php replace:

    if ('wp-login.php' === $GLOBALS['pagenow']) {

    with:

    if (isset($GLOBALS['pagenow']) && 'wp-login.php' === $GLOBALS['pagenow']) {

    • This topic was modified 5 years, 11 months ago by Ducktales.
    • This topic was modified 5 years, 11 months ago by Ducktales.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fix for notice’ is closed to new replies.