From ddb1f3e7ca23db337d01b905e0a072ed48f754ee Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 21 Feb 2014 18:50:08 +0000 Subject: [PATCH] Remove unused code from WP_Widget::update_callback(). props OriginalEXE. fixes #24733. git-svn-id: https://develop.svn.wordpress.org/trunk@27224 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/widgets.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/widgets.php b/src/wp-includes/widgets.php index cc8d0a1186..e27a13de66 100644 --- a/src/wp-includes/widgets.php +++ b/src/wp-includes/widgets.php @@ -183,15 +183,16 @@ class WP_Widget { } } - /** Deal with changed settings. - * Do NOT over-ride this function. */ - function update_callback( $widget_args = 1 ) { + /** + * Deal with changed settings. + * + * Do NOT over-ride this function. + * + * @param mixed $deprecated Not used. + */ + function update_callback( $deprecated = 1 ) { global $wp_registered_widgets; - if ( is_numeric($widget_args) ) - $widget_args = array( 'number' => $widget_args ); - - $widget_args = wp_parse_args( $widget_args, array( 'number' => -1 ) ); $all_instances = $this->get_settings(); // We need to update the data