Opened 13 years ago
Closed 13 years ago
#24733 closed defect (bug) (fixed)
Unused code in WP_Widgets::update_callback()
| Reported by: | jdgrimes | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Widgets | Version: | |
| Severity: | minor | Keywords: | good-first-bug has-patch |
| Cc: | Focuses: |
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.
13 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Hello jdgrimes, thanks for the report.
Yes, the code seems to be unused since it was introduced in [10798]. How bad.