Make WordPress Core

Ticket #19898: 19898.5.diff

File 19898.5.diff, 924 bytes (added by scribu, 12 years ago)
  • wp-includes/general-template.php

    diff --git wp-includes/general-template.php wp-includes/general-template.php
    index 939e9de..1a97424 100644
    function wp_login_url($redirect = '', $force_reauth = false) { 
    247247}
    248248
    249249/**
     250 * Whether the current request is for a login page
     251 *
     252 * @since 3.5.0
     253 *
     254 * @return bool
     255 */
     256function is_login_page() {
     257        return (bool) did_action( 'login_form_login' );
     258}
     259
     260/**
     261 * Whether the current request is for the registration page
     262 *
     263 * @since 3.5.0
     264 *
     265 * @return bool
     266 */
     267function is_register_page() {
     268        if ( is_multisite() && 'wp-signup.php' == $GLOBALS['pagenow'] )
     269                return true;
     270
     271        return (bool) did_action( 'login_form_register' );
     272}
     273
     274/**
    250275 * Provides a simple login form for use anywhere within WordPress. By default, it echoes
    251276 * the HTML immediately. Pass array('echo'=>false) to return the string instead.
    252277 *