Opened 12 years ago
Closed 12 years ago
#24733 closed defect (bug) (fixed)
Unused code in WP_Widgets::update_callback()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.9 | Priority: | normal |
| Severity: | minor | Version: | |
| Component: | Widgets | Keywords: | good-first-bug has-patch |
| Focuses: | Cc: |
Description
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 ) );
Attachments (1)
Change History (7)
This ticket was mentioned in IRC in #wordpress-dev by nacin. View the logs.
12 years ago
Note: See
TracTickets for help on using
tickets.
Hello jdgrimes, thanks for the report.
Yes, the code seems to be unused since it was introduced in [10798]. How bad.