Make WordPress Core

Changeset 24053 for trunk/wp-login.php


Ignore:
Timestamp:
04/22/2013 08:21:22 PM (11 years ago)
Author:
nacin
Message:

Add wp_registration_url() and register_url filter.

props scribu, JustinSainton, SergeyBiryukov.
fixes #17950.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r23805 r24053  
    467467<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a>
    468468<?php if ( get_option( 'users_can_register' ) ) : ?>
    469  | <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( site_url( 'wp-login.php?action=register', 'login' ) ), __( 'Register' ) ) ); ?>
     469 | <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ) ); ?>
    470470<?php endif; ?>
    471471</p>
     
    526526<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a>
    527527<?php if ( get_option( 'users_can_register' ) ) : ?>
    528  | <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( site_url( 'wp-login.php?action=register', 'login' ) ), __( 'Register' ) ) ); ?>
     528 | <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ) ); ?>
    529529<?php endif; ?>
    530530</p>
     
    733733<?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : ?>
    734734    <?php if ( get_option( 'users_can_register' ) ) : ?>
    735         <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( site_url( 'wp-login.php?action=register', 'login' ) ), __( 'Register' ) ) ); ?> |
     735        <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( wp_registration_url() ), __( 'Register' ) ) ); ?> |
    736736    <?php endif; ?>
    737737    <a href="<?php echo esc_url( wp_lostpassword_url() ); ?>" title="<?php esc_attr_e( 'Password Lost and Found' ); ?>"><?php _e( 'Lost your password?' ); ?></a>
Note: See TracChangeset for help on using the changeset viewer.