From f68ac01d4cd70d260725572cf38a69a273def225 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 12 Mar 2013 10:30:58 +0000 Subject: [PATCH] Fix array formatting. see #21210. git-svn-id: http://core.svn.wordpress.org/trunk@23668 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index 36713a04a9..c90615e132 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -261,21 +261,22 @@ function wp_login_url($redirect = '', $force_reauth = false) { * @return string|null String when retrieving, null when displaying. */ function wp_login_form( $args = array() ) { - $defaults = array( 'echo' => true, - 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], // Default redirect is back to the current page - 'form_id' => 'loginform', - 'label_username' => __( 'Username' ), - 'label_password' => __( 'Password' ), - 'label_remember' => __( 'Remember Me' ), - 'label_log_in' => __( 'Log In' ), - 'id_username' => 'user_login', - 'id_password' => 'user_pass', - 'id_remember' => 'rememberme', - 'id_submit' => 'wp-submit', - 'remember' => true, - 'value_username' => '', - 'value_remember' => false, // Set this to true to default the "Remember me" checkbox to checked - ); + $defaults = array( + 'echo' => true, + 'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], // Default redirect is back to the current page + 'form_id' => 'loginform', + 'label_username' => __( 'Username' ), + 'label_password' => __( 'Password' ), + 'label_remember' => __( 'Remember Me' ), + 'label_log_in' => __( 'Log In' ), + 'id_username' => 'user_login', + 'id_password' => 'user_pass', + 'id_remember' => 'rememberme', + 'id_submit' => 'wp-submit', + 'remember' => true, + 'value_username' => '', + 'value_remember' => false, // Set this to true to default the "Remember me" checkbox to checked + ); $args = wp_parse_args( $args, apply_filters( 'login_form_defaults', $defaults ) ); $form = '