[wp-trac] [WordPress Trac] #7234: In admin header,
blog title is unfiltered (used to be filtered)
WordPress Trac
wp-trac at lists.automattic.com
Thu Jul 3 15:21:19 GMT 2008
#7234: In admin header, blog title is unfiltered (used to be filtered)
----------------------------+-----------------------------------------------
Reporter: jhodgdon | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.6
Component: Administration | Version: 2.6
Severity: normal | Keywords: filter, has-patch
----------------------------+-----------------------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/7234>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list