[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 23:34:30 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        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by scribu):

 Wait, since $title is always a string, what difference does it make if you
 use {{{if ( !empty( $title ) )}}}, instead of {{{if ( $title )}}} ?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19838#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list