#11625 closed enhancement (fixed)
Move default colours to a action hook
| Reported by: | dd32 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Administration | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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
@
17 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
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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?