Opened 16 years ago
Closed 15 years ago
#14559 closed defect (bug) (wontfix)
wp_admin_css Filter Broken
| Reported by: | tech163 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 3.0.1 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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)
#2
@
15 years ago
- Cc added
- Resolution wontfix
- Status closed → 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' );
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Core CSS files will get processed via WP_Styles, so the filter isn't very helpful anymore.