#11625 closed enhancement (fixed)
Move default colours to a action hook
Reported by: | dd32 | Owned by: | |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | Administration | Keywords: | has-patch |
Focuses: | Cc: |
Description
At present, wp_admin_css_color()
is being called directly from wp-admin/admin.php
this has the disadvantage, that if a plugin wants to hook and output a themed page to admin-post.php, its not possible to do that whilst retaining the colour themes. (As admin.php is only included for "content filled backend pages"
Attached patch moves it to a function thats hooked to admin_init.
Attachments (1)
Change History (5)
#2
@
15 years ago
No. Not really. Theres the admin_init hook for initialising anything admin related, it suits fine.
I did think of adding a do_action('colours-init');
but didnt think it was really needed since it would become an alias for admin_init
Note: See
TracTickets for help on using
tickets.
Wouldn't it make sense to offer the hook (or another one) to actual be able to offer color-shemes by a plugin as well?