Make WordPress Core

Ticket #22139: 22139.diff

File 22139.diff, 629 bytes (added by iamfriendly, 9 years ago)

Added an action before the login container on the wp-login screen

  • wp-login.php

    diff --git wp-login.php wp-login.php
    index 5b3daaa..267b62d 100644
    function login_header( $title = 'Log In', $message = '', $wp_error = '' ) { 
    148148        ?>
    149149        </head>
    150150        <body class="login <?php echo esc_attr( implode( ' ', $classes ) ); ?>">
     151        <?php
     152        /**
     153         * Fires before the main login container div is output
     154         *
     155         * @since 4.4.0
     156         */
     157        do_action( 'login_before_container' );
     158        ?>
    151159        <div id="login">
    152160                <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>
    153161        <?php