do_action('login_footer') missing in wp_login.php 3.1-beta2
-
Code base:
Wordpress 3.1 Beta 2, filewp_login.php.Problem:
On$action='login', no callback is made todo_action('login_footer').Discussion:
For any action except login, a new local functionlogin_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 filewp_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 functionlogin_footer().
The topic ‘do_action('login_footer') missing in wp_login.php 3.1-beta2’ is closed to new replies.