[wp-trac] [WordPress Trac] #30104: Login Form Filters not working

WordPress Trac noreply at wordpress.org
Sun Oct 26 02:24:44 UTC 2014


#30104: Login Form Filters not working
------------------------------------+-----------------------------
 Reporter:  davidp98                |      Owner:
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:  4.0
 Severity:  normal                  |   Keywords:
  Focuses:                          |
------------------------------------+-----------------------------
 Hi, after searching and get it into several parts, I think it is possibly
 a bug.

 Hi, I'm trying to use a filter (documented here
 http://codex.wordpress.org/Customizing_the_Login_Form) on the login page
 of my wordpress based web, but it does not work, I'm trying to insert a
 text immediately after opening the form tag:



 {{{
 add_filter( 'login_form_top', 'message_top' );function
 message_top(){return 'This is what I want it to say!';}
 }}}


 I add the code in functions.php and nothing happens.
 But the strange thing of that is if I change the filter, e.g:

 {{{
 add_filter( 'login_message', 'message_top' );function message_top(){return
 'This is what I want it to say!';}
 }}}


 It works (outside the form tag). Looking the code of wp-login.php (WP 4.0)
 I can see the call to this filter (login_form_top) is never made although
 it is documented (http://codex.wordpress.org/Customizing_the_Login_Form)

 It could be a bug or I am missing something?

 Thanks in advance and excuse my bad english

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30104>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list