WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 4 years 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 6 years ago.
Add conditional ' custom-background' to login body class.

Download all attachments as: .zip

Change History (3)

@toscho
6 years ago

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

#1 @DrewAPicture
6 years ago

  • Cc xoodrew@… added

#2 @nacin
4 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.