WordPress.org

Make WordPress Core

Changeset 16749


Ignore:
Timestamp:
12/06/10 16:24:05 (6 years ago)
Author:
scribu
Message:

Pass $args to login_form_* filters. Props aaroncampbell. Fixes #15702

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/general-template.php

    r16660 r16749  
    272272    $form = ' 
    273273        <form name="' . $args['form_id'] . '" id="' . $args['form_id'] . '" action="' . site_url( 'wp-login.php', 'login' ) . '" method="post"> 
    274             ' . apply_filters( 'login_form_top', '' ) . ' 
     274            ' . apply_filters( 'login_form_top', '', $args ) . ' 
    275275            <p class="login-username"> 
    276276                <label for="' . esc_attr( $args['id_username'] ) . '">' . esc_html( $args['label_username'] ) . '</label> 
     
    281281                <input type="password" name="pwd" id="' . esc_attr( $args['id_password'] ) . '" class="input" value="" size="20" tabindex="20" /> 
    282282            </p> 
    283             ' . apply_filters( 'login_form_middle', '' ) . ' 
     283            ' . apply_filters( 'login_form_middle', '', $args ) . ' 
    284284            ' . ( $args['remember'] ? '<p class="login-remember"><label><input name="rememberme" type="checkbox" id="' . esc_attr( $args['id_remember'] ) . '" value="forever" tabindex="90"' . ( $args['value_remember'] ? ' checked="checked"' : '' ) . ' /> ' . esc_html( $args['label_remember'] ) . '</label></p>' : '' ) . ' 
    285285            <p class="login-submit"> 
     
    287287                <input type="hidden" name="redirect_to" value="' . esc_attr( $args['redirect'] ) . '" /> 
    288288            </p> 
    289             ' . apply_filters( 'login_form_bottom', '' ) . ' 
     289            ' . apply_filters( 'login_form_bottom', '', $args ) . ' 
    290290        </form>'; 
    291291 
Note: See TracChangeset for help on using the changeset viewer.