Make WordPress Core

Opened 10 years ago

Closed 9 years ago

#21713 closed enhancement (wontfix)

Extend login body class to support custom background

Reported by: toscho's profile toscho Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Login and Registration Keywords: has-patch
Focuses: template Cc:


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.

Attachments (1)

wp-login.php.patch (628 bytes) - added by toscho 10 years ago.
Add conditional ' custom-background' to login body class.

Download all attachments as: .zip

Change History (3)

10 years ago

Add conditional ' custom-background' to login body class.

#1 @DrewAPicture
10 years ago

  • Cc xoodrew@… added

#2 @nacin
9 years ago

  • Component changed from Template to Login and Registration
  • Focuses template added
  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

The login_body_class filter added in 3.5 makes this moot.

Note: See TracTickets for help on using tickets.