Login/Registration: Add `login_header` action that fires in the login page header after the body tag is opened and complements `login_footer`.

Props borkweb, iamfriendly, voldemortensen.
Fixes #22139.
Built from https://develop.svn.wordpress.org/trunk@37243


git-svn-id: http://core.svn.wordpress.org/trunk@37209 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2016-04-18 23:54:29 +00:00
parent 7e5dcdb1aa
commit c8fe7cc538
2 changed files with 9 additions and 1 deletions

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-alpha-37242';
$wp_version = '4.6-alpha-37243';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.

View File

@ -151,6 +151,14 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
?>
</head>
<body class="login <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
<?php
/**
* Fires in the login page header after the body tag is opened.
*
* @since 4.6.0
*/
do_action( 'login_header' );
?>
<div id="login">
<h1><a href="<?php echo esc_url( $login_header_url ); ?>" title="<?php echo esc_attr( $login_header_title ); ?>" tabindex="-1"><?php bloginfo( 'name' ); ?></a></h1>
<?php