Opened 18 years ago
Closed 18 years ago
#7234 closed defect (bug) (fixed)
In admin header, blog title is unfiltered (used to be filtered)
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | 2.6 | Priority: | normal |
| Severity: | normal | Version: | 2.6 |
| Component: | Administration | Keywords: | filter, has-patch |
| Focuses: | Cc: |
Description
In WordPress 2.6 Beta 2 (this came from changeset [7600]), the part of the admin header where it prints out the name of the blog in a big H1 tag at the top of all the admin screens is unfiltered. It used to be filtered.
The reason is that it went from using the bloginfo() function to get_bloginfo(), and get_bloginfo() does not filter its output by default, whereas bloginfo() does. So the blog name is now unfiltered.
The fix would be to call
get_bloginfo('name', 'display')
in place of
get_bloginfo('name')
so that it would be filtered, as it was in 2.5.
I'll create a patch that does this. It's a simple fix to one line of wp-admin/admin_header.php . It would be great if this could get into 2.6, since that's the first version where it's broken. It's pretty glaring if you have a filter, since this appears at the top of all the admin screens...
Tested in 2.6 Beta 2.
Patch to wp-admin/admin-header.php to fix this bug