Add body classes and 'login_body_class' filter to wp-login.php
|Reported by:||husobj||Owned by:||nacin|
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'