[wp-trac] [WordPress Trac] #38133: Default widget title used if instance title is "0"

WordPress Trac noreply at wordpress.org
Thu Sep 22 20:18:35 UTC 2016


#38133: Default widget title used if instance title is "0"
---------------------------+-----------------------------
 Reporter:  hardeepasrani  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Future Release
Component:  Widgets        |     Version:  2.6
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  administration
---------------------------+-----------------------------

Comment (by hardeepasrani):

 Replying to [comment:1 westonruter]:
 > @hardeepasrani good catch. Yes, the `isset( $variable) && $variable !==
 ''` check would be better over using `! empty( $variable )`. (Note `!==`
 instead of `!=`.)

 It's not just title. It could also be content in Text widget. Anyway, I'll
 send a patch after doing some tests. Thanks!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38133#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list