[wp-trac] [WordPress Trac] #6448: wp_admin_css action should be
splitted up
WordPress Trac
wp-trac at lists.automattic.com
Sat Mar 29 18:10:08 GMT 2008
#6448: wp_admin_css action should be splitted up
----------------------------+-----------------------------------------------
Reporter: duk3luk3 | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.7
Component: Administration | Version: 2.3.2
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
the action wp_admin_css is triggered when embedding several css files.
this behaviour is described in the
[http://codex.wordpress.org/Creating_Admin_Themes#Change_Log-
In_page.27s_style 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.)
--
Ticket URL: <http://trac.wordpress.org/ticket/6448>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list