[wp-trac] [WordPress Trac] #17837: Calendar widget title markup displayed when empty
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 31 19:00:53 UTC 2011
#17837: Calendar widget title markup displayed when empty
------------------------------------+------------------------------
Reporter: joshstauffer | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.1.3
Severity: trivial | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Changes (by mfields):
* cc: michael@… (added)
* keywords: has-patch => has-patch dev-feedback
Comment:
I think that this is a great idea! In a few themes, I have had to filter
the widget title like:
{{{
function mytheme_calendar_widget_title( $title = '', $instance = '',
$id_base = '' ) {
if ( 'calendar' == $id_base && ' ' == $title )
$title = '';
return $title;
}
}}}
I find that it is always necessary to do when the widget title has a
background color applied. In the event that the user leaves the title
blank, a weird square will appear above the calendar.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17837#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list