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

WordPress Trac noreply at wordpress.org
Sun Dec 30 21:16:28 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 alexvorn2):

 Replying to [comment:3 scribu]:
 > A more readable version would be:
 >
 > {{{
 > $number = false;
 >
 > if ( !empty( $instance['number'] ) )
 >   $number = absint( $instance['number'] );
 >
 > if ( !$number )
 >   $number = 5;
 > }}}

 agree! +1

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


More information about the wp-trac mailing list