Ticket #7234 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

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

Reported by: jhodgdon Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: Administration Version: 2.6
Severity: normal Keywords: filter, has-patch
Cc: jhodgdon

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.

Attachments

admin-header-php.diff (0.8 kB) - added by jhodgdon on 07/03/08 15:21:49.
Patch to wp-admin/admin-header.php to fix this bug

Change History

07/03/08 15:21:49 changed by jhodgdon

  • attachment admin-header-php.diff added.

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

07/03/08 16:05:15 changed by ryan

  • status changed from new to closed.
  • resolution set to fixed.

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