[wp-trac] [WordPress Trac] #23089: WP_Widget_Recent_Comments bug

WordPress Trac noreply at wordpress.org
Sun Dec 30 21:14:36 UTC 2012


#23089: WP_Widget_Recent_Comments bug
--------------------------+----------------------
 Reporter:  alexvorn2     |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Widgets       |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |
--------------------------+----------------------

Comment (by scribu):

 A more readable version would be:

 {{{
 $number = false;

 if ( !empty( $instance['number'] )
   $number = absint( $instance['number'] );

 if ( !$number )
   $number = 5;
 }}}

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


More information about the wp-trac mailing list