[wp-trac] [WordPress Trac] #21133: Add body classes and 'login_body_class' filter to wp-login.php

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 2 10:24:14 UTC 2012


#21133: Add body classes and 'login_body_class' filter to wp-login.php
-------------------------+-----------------------------
 Reporter:  husobj       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.4
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 The body class for the login page is hardcoded and simply outputs 'login'
 no matter what the context - ie login, register, forgotten password etc.

 It would make more sense to add additional classes for the context and
 also make it filterable so that styling can be tweaked for
 register/login/forgotten password etc - I wrote this patch in response to
 requirements I had to style the register layout differently to the login.

 My attached patch adds additional classes for the context.
 (It retains the 'login' class throughout - this is required anyway for
 backwards compatibility)

 It also adds a new filter 'login_body_class' in a similar way to
 'body_class' and 'admin_body_class'

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21133>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list