Ticket #21133: 21133.2.patch
| File 21133.2.patch, 1.9 KB (added by , 14 years ago) |
|---|
-
wp-login.php
86 86 if ( $interim_login ) 87 87 $login_header_url = '#'; 88 88 89 $login_body_class = str_replace( 'login', '', _get_login_action() ); 90 91 if ( is_rtl() ) 92 $login_body_class .= ' rtl'; 93 94 if ( wp_is_mobile() ) 95 $login_body_class .= ' mobile'; 89 96 ?> 90 97 </head> 91 <body class="login <?php if ( wp_is_mobile() ) echo ' mobile'; ?>">98 <body class="login <?php echo apply_filters( 'login_body_class', '' ) . " $login_body_class"; ?>"> 92 99 <div id="login"> 93 100 <h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>"><?php bloginfo( 'name' ); ?></a></h1> 94 101 <?php … … 343 350 return $user_id; 344 351 } 345 352 353 /** 354 * Retrieves current action. 355 * 356 * @since 3.5.0 357 * 358 * @return string Requested action. 359 */ 360 function _get_login_action() { 361 $action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : 'login'; 362 363 if ( isset( $_GET['key'] ) ) 364 $action = 'resetpass'; 365 366 // validate action so as to default to the login screen 367 if ( ! in_array( $action, array( 'postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login' ), true ) && false === has_filter( 'login_form_' . $action ) ) 368 $action = 'login'; 369 370 return $action; 371 } 372 346 373 // 347 374 // Main 348 375 // 349 376 350 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'login';377 $action = _get_login_action(); 351 378 $errors = new WP_Error(); 352 379 353 if ( isset($_GET['key']) )354 $action = 'resetpass';355 356 // validate action so as to default to the login screen357 if ( !in_array( $action, array( 'postpass', 'logout', 'lostpassword', 'retrievepassword', 'resetpass', 'rp', 'register', 'login' ), true ) && false === has_filter( 'login_form_' . $action ) )358 $action = 'login';359 360 380 nocache_headers(); 361 381 362 382 header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)