Fix array formatting. see #21210.
git-svn-id: http://core.svn.wordpress.org/trunk@23668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bbae368b81
commit
f68ac01d4c
|
@ -261,7 +261,8 @@ function wp_login_url($redirect = '', $force_reauth = false) {
|
||||||
* @return string|null String when retrieving, null when displaying.
|
* @return string|null String when retrieving, null when displaying.
|
||||||
*/
|
*/
|
||||||
function wp_login_form( $args = array() ) {
|
function wp_login_form( $args = array() ) {
|
||||||
$defaults = array( 'echo' => true,
|
$defaults = array(
|
||||||
|
'echo' => true,
|
||||||
'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], // Default redirect is back to the current page
|
'redirect' => ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], // Default redirect is back to the current page
|
||||||
'form_id' => 'loginform',
|
'form_id' => 'loginform',
|
||||||
'label_username' => __( 'Username' ),
|
'label_username' => __( 'Username' ),
|
||||||
|
|
Loading…
Reference in New Issue