WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] do_action('login_footer') missing in wp_login.php 3.1-beta2 (2 posts)

  1. jf-appnovation
    Member
    Posted 3 years ago #

    Code base:

    Wordpress 3.1 Beta 2, file wp_login.php.

    Problem:

    On $action='login', no callback is made to do_action('login_footer').

    Discussion:

    For any action except login, a new local function login_footer() is called at the end to close the page by outputting </body>, </html> etc.

    However, for the login action, this function is not called, and the older 3.0 code still terminates the page.

    Workaroud:

    In file wp_login.php, before line 137 (i.e. before the </body> tag), insert:

    <?php do_action('login_footer'); ?>

    Solution:

    The end of the login action needs to be made compatible with the function login_footer().

  2. Andrew Nacin
    Lead Developer
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic