WordPress.org

Make WordPress Core

Opened 20 months ago

Closed 3 months ago

#21713 closed enhancement (wontfix)

Extend login body class to support custom background

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

Description

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 20 months ago.
Add conditional ' custom-background' to login body class.

Download all attachments as: .zip

Change History (3)

toscho20 months ago

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

comment:1 DrewAPicture20 months ago

  • Cc xoodrew@… added

comment:2 nacin3 months 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.