[wp-trac] [WordPress Trac] #19838: Don't display before_title and after_title if title is empty in widgets
WordPress Trac
wp-trac at lists.automattic.com
Sun Jan 15 19:56:56 UTC 2012
#19838: Don't display before_title and after_title if title is empty in widgets
-------------------------+-----------------------------
Reporter: Xarem | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version:
Severity: minor | Keywords:
-------------------------+-----------------------------
Hi
it's not necessary displaying before/after_title if $title is empty
Example:
wp-calendar don't have a title, so don't display $before_title and
$after_title
Solution suggestion:
return false if filter widget_title notices that $title is empty
Thank you
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19838>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list