Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#7234 closed defect (bug) (fixed)

In admin header, blog title is unfiltered (used to be filtered)

Reported by: jhodgdon Owned by:
Milestone: 2.6 Priority: normal
Severity: normal Version: 2.6
Component: Administration Keywords: filter, has-patch
Focuses: Cc:


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


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.

Attachments (1)

admin-header-php.diff (845 bytes) - added by jhodgdon 10 years ago.
Patch to wp-admin/admin-header.php to fix this bug

Download all attachments as: .zip

Change History (2)

10 years ago

Patch to wp-admin/admin-header.php to fix this bug

#1 @ryan
10 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [8249]) Run display filters for blog title. Props jhodgdon. fixes #7234

Note: See TracTickets for help on using tickets.