Make WordPress Core

Changeset 23668


Ignore:
Timestamp:
03/12/2013 10:30:58 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Fix array formatting. see #21210.

File:
1 edited

Legend:

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

    r23667 r23668  
    262262 */
    263263function wp_login_form( $args = array() ) {
    264     $defaults = array( 'echo' => true,
    265                         'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], // Default redirect is back to the current page
    266                         'form_id' => 'loginform',
    267                         'label_username' => __( 'Username' ),
    268                         'label_password' => __( 'Password' ),
    269                         'label_remember' => __( 'Remember Me' ),
    270                         'label_log_in' => __( 'Log In' ),
    271                         'id_username' => 'user_login',
    272                         'id_password' => 'user_pass',
    273                         'id_remember' => 'rememberme',
    274                         'id_submit' => 'wp-submit',
    275                         'remember' => true,
    276                         'value_username' => '',
    277                         'value_remember' => false, // Set this to true to default the "Remember me" checkbox to checked
    278                     );
     264    $defaults = array(
     265        'echo' => true,
     266        'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], // Default redirect is back to the current page
     267        'form_id' => 'loginform',
     268        'label_username' => __( 'Username' ),
     269        'label_password' => __( 'Password' ),
     270        'label_remember' => __( 'Remember Me' ),
     271        'label_log_in' => __( 'Log In' ),
     272        'id_username' => 'user_login',
     273        'id_password' => 'user_pass',
     274        'id_remember' => 'rememberme',
     275        'id_submit' => 'wp-submit',
     276        'remember' => true,
     277        'value_username' => '',
     278        'value_remember' => false, // Set this to true to default the "Remember me" checkbox to checked
     279    );
    279280    $args = wp_parse_args( $args, apply_filters( 'login_form_defaults', $defaults ) );
    280281
Note: See TracChangeset for help on using the changeset viewer.