Make WordPress Core

Changeset 37243


Ignore:
Timestamp:
04/18/2016 11:53:34 PM (9 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r36867 r37243  
    152152    </head>
    153153    <body class="login <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
     154    <?php
     155    /**
     156     * Fires in the login page header after the body tag is opened.
     157     *
     158     * @since 4.6.0
     159     */
     160    do_action( 'login_header' );
     161    ?>
    154162    <div id="login">
    155163        <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>
Note: See TracChangeset for help on using the changeset viewer.