[wp-trac] [WordPress Trac] #24733: Unused code in WP_Widgets::update_callback()

WordPress Trac noreply at wordpress.org
Fri Jul 12 14:35:06 UTC 2013


#24733: Unused code in WP_Widgets::update_callback()
--------------------------+-----------------------------
 Reporter:  jdgrimes      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Widgets       |    Version:
 Severity:  minor         |   Keywords:
--------------------------+-----------------------------
 The single argument for `WP_Widgets::update_callback()` (`$widget_args`)
 does not appear to have any usage in the function, except for the five
 references shown below, which alone don't seem to do anything.


 {{{
 if ( is_numeric($widget_args) )
        $widget_args = array( 'number' => $widget_args );

        $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 )
 );
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24733>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list