wp_admin_css action should be split up
|Reported by:||duk3luk3||Owned by:|
the action wp_admin_css is triggered when embedding several css files. this behaviour is described in the codex.
This means, if you want to override one admin stylesheet, you have to override them all, because there is no easy way of finding out which one is currently being replaced inside the callback.
This adds load to the page, because you have to include e.g. upload.css in every admin page that is delivered to keep the layout intact!
So, this action should be split up into several actions, one for each stylesheet; or a parameter specifying the stylesheet being replaced could be introduced to the callback prototype. (the former maybe being less compatibility-breaking by leaving the wp_admin_css action as it is and introducing wp_admin_css_main, wp_admin_css_upload, wp_admin_css_login etc.)
Change History (7)
- Milestone changed from 2.8 to Future Release
- Summary changed from wp_admin_css action should be splitted up to wp_admin_css action should be split up