Ticket #43080: 43080.patch
File 43080.patch, 940 bytes (added by , 7 years ago) |
---|
-
wp-login.php
228 228 * @since 2.1.0 229 229 * 230 230 * @param string $errors Login error message. 231 * @param WP_Error $wp_error triggered WP_Error. 231 232 */ 232 echo '<div id="login_error">' . apply_filters( 'login_errors', $errors ) . "</div>\n";233 echo '<div id="login_error">' . apply_filters( 'login_errors', $errors, $wp_error ) . "</div>\n"; 233 234 } 234 235 if ( ! empty( $messages ) ) { 235 236 /** … … 238 239 * @since 2.5.0 239 240 * 240 241 * @param string $messages Login messages. 242 * @param WP_Error $wp_error triggered WP_Error. 241 243 */ 242 echo '<p class="message">' . apply_filters( 'login_messages', $messages ) . "</p>\n";244 echo '<p class="message">' . apply_filters( 'login_messages', $messages, $wp_error ) . "</p>\n"; 243 245 } 244 246 } 245 247 } // End of login_header()