[wp-trac] Re: [WordPress Trac] #10225: Various php notices in default-widgets.php

WordPress Trac wp-trac at lists.automattic.com
Sun Jun 21 11:01:11 GMT 2009


#10225: Various php notices in default-widgets.php
------------------------------+---------------------------------------------
 Reporter:  mrmist            |        Type:  defect (bug)    
   Status:  new               |    Priority:  normal          
Milestone:  2.9               |   Component:  Warnings/Notices
  Version:  2.9               |    Severity:  minor           
 Keywords:  has-patch commit  |  
------------------------------+---------------------------------------------

Comment(by Denis-de-Bernardy):

 nit picking, but things like this:

 {{{
 $count = isset($instance['count']) ? (bool) $instance['count'] :false;
 }}}

 could also be written like:

 {{{
 $count = isset($instance['count']) && $instance['count'];
 }}}

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


More information about the wp-trac mailing list