mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Allow filtering of login message even if empty. Props DD32. fixes #8675
git-svn-id: http://svn.automattic.com/wordpress/trunk@10634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ffb28cf66d
commit
bea9ee50aa
@ -58,7 +58,8 @@ function login_header($title = 'Log In', $message = '', $wp_error = '') {
|
||||
|
||||
<div id="login"><h1><a href="<?php echo apply_filters('login_headerurl', 'http://wordpress.org/'); ?>" title="<?php echo apply_filters('login_headertitle', __('Powered by WordPress')); ?>"><?php bloginfo('name'); ?></a></h1>
|
||||
<?php
|
||||
if ( !empty( $message ) ) echo apply_filters('login_message', $message) . "\n";
|
||||
$message = apply_filters('login_message', $message);
|
||||
if ( !empty( $message ) ) echo $message . "\n";
|
||||
|
||||
// Incase a plugin uses $error rather than the $errors object
|
||||
if ( !empty( $error ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user