[wp-trac] [WordPress Trac] #21713: Extend login body class to support custom background

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 28 14:46:01 UTC 2012


#21713: Extend login body class to support custom background
-------------------------+-----------------------------
 Reporter:  toscho       |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Template     |    Version:
 Severity:  normal       |   Keywords:  has-patch
-------------------------+-----------------------------
 It would be useful to have a class `custom-background` on the `body`
 element for `wp-login.php`. Then we could just write:

 {{{
 add_action( 'login_head', '_custom_background_cb' );
 }}}

 Currently we have to copy the whole function with a very tiny difference:
 replace `body.custom-background` with `body.login`. Not very elegant.

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


More information about the wp-trac mailing list