mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 16:08:12 +01:00
Remove unused code from WP_Widget::update_callback().
props OriginalEXE. fixes #24733. Built from https://develop.svn.wordpress.org/trunk@27224 git-svn-id: http://core.svn.wordpress.org/trunk@27081 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
de2bd0bf44
commit
45838c805c
@ -183,15 +183,16 @@ class WP_Widget {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Deal with changed settings.
|
/**
|
||||||
* Do NOT over-ride this function. */
|
* Deal with changed settings.
|
||||||
function update_callback( $widget_args = 1 ) {
|
*
|
||||||
|
* Do NOT over-ride this function.
|
||||||
|
*
|
||||||
|
* @param mixed $deprecated Not used.
|
||||||
|
*/
|
||||||
|
function update_callback( $deprecated = 1 ) {
|
||||||
global $wp_registered_widgets;
|
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();
|
$all_instances = $this->get_settings();
|
||||||
|
|
||||||
// We need to update the data
|
// We need to update the data
|
||||||
|
Loading…
Reference in New Issue
Block a user