WordPress.org

Make WordPress Core

Changeset 23558


Ignore:
Timestamp:
03/01/13 16:43:18 (14 months ago)
Author:
SergeyBiryukov
Message:

Consistently apply 'register' filter. props wonderboymusic for initial patch. fixes #14406.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-login.php

    r23554 r23558  
    452452<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e('Log in') ?></a> 
    453453<?php if ( get_option( 'users_can_register' ) ) : ?> 
    454  | <a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a> 
     454 | <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( site_url( 'wp-login.php?action=register', 'login' ) ), __( 'Register' ) ) ); ?> 
    455455<?php endif; ?> 
    456456</p> 
     
    511511<a href="<?php echo esc_url( wp_login_url() ); ?>"><?php _e( 'Log in' ); ?></a> 
    512512<?php if ( get_option( 'users_can_register' ) ) : ?> 
    513  | <a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a> 
     513 | <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( site_url( 'wp-login.php?action=register', 'login' ) ), __( 'Register' ) ) ); ?> 
    514514<?php endif; ?> 
    515515</p> 
     
    704704<?php if ( ! isset( $_GET['checkemail'] ) || ! in_array( $_GET['checkemail'], array( 'confirm', 'newpass' ) ) ) : ?> 
    705705    <?php if ( get_option( 'users_can_register' ) ) : ?> 
    706     <a href="<?php echo esc_url( site_url( 'wp-login.php?action=register', 'login' ) ); ?>"><?php _e( 'Register' ); ?></a> | 
     706        <?php echo apply_filters( 'register', sprintf( '<a href="%s">%s</a>', esc_url( site_url( 'wp-login.php?action=register', 'login' ) ), __( 'Register' ) ) ); ?> | 
    707707    <?php endif; ?> 
    708708    <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.