Opened 3 years ago
Closed 22 months ago
#14559 closed defect (bug) (wontfix)
wp_admin_css Filter Broken
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 3.0.1 |
| Severity: | normal | Keywords: | |
| Cc: | noxion |
Description
I think the wp_admin_css filter is broken. I created a plugin with the following code, and nothing happens (I did activate it though).
function wp_admin_css_blah($test) {
die($test);
}
add_filter('wp_admin_css', 'wp_admin_css_blah');
Change History (3)
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed
- Cc noxion added
- Resolution wontfix deleted
- Status changed from closed to reopened
Look, I've fixed that adding the action hook to my template:
function my_wp_admin_css() {
echo '<link rel="stylesheet" type="text/css" href="' .get_bloginfo('template_url').'/wp-admin.css">';
}
add_action('wp_admin_css','my_wp_admin_css');
apply_filters( 'wp_admin_css','my_wp_admin_css' );
- Resolution set to wontfix
- Status changed from reopened to closed
If you call apply_filters() yourself, you might as well just call my_wp_admin_css() directly.
Please don't re-open this ticket.
Version 0, edited 22 months ago
by scribu
(next)
Note: See
TracTickets for help on using
tickets.

Core CSS files will get processed via WP_Styles, so the filter isn't very helpful anymore.