wp-admin/includes/ajax-actions.php 1 location
|
@@ 1929-1940 (lines=12) @@
|
1926 |
|
} |
1927 |
|
$_POST['widget-id'] = $sidebar; |
1928 |
|
|
1929 |
|
foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
1930 |
|
|
1931 |
|
if ( $name == $id_base ) { |
1932 |
|
if ( !is_callable( $control['callback'] ) ) |
1933 |
|
continue; |
1934 |
|
|
1935 |
|
ob_start(); |
1936 |
|
call_user_func_array( $control['callback'], $control['params'] ); |
1937 |
|
ob_end_clean(); |
1938 |
|
break; |
1939 |
|
} |
1940 |
|
} |
1941 |
|
|
1942 |
|
if ( isset($_POST['delete_widget']) && $_POST['delete_widget'] ) { |
1943 |
|
$sidebars[$sidebar_id] = $sidebar; |
wp-admin/widgets.php 1 location
|
@@ 170-179 (lines=10) @@
|
167 |
|
|
168 |
|
$_POST['widget-id'] = $sidebar; |
169 |
|
|
170 |
|
foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
171 |
|
if ( $name != $id_base || !is_callable($control['callback']) ) |
172 |
|
continue; |
173 |
|
|
174 |
|
ob_start(); |
175 |
|
call_user_func_array( $control['callback'], $control['params'] ); |
176 |
|
ob_end_clean(); |
177 |
|
|
178 |
|
break; |
179 |
|
} |
180 |
|
|
181 |
|
$sidebars_widgets[$sidebar_id] = $sidebar; |
182 |
|
|
wp-includes/class-wp-customize-widgets.php 1 location
|
@@ 1400-1407 (lines=8) @@
|
1397 |
|
} |
1398 |
|
|
1399 |
|
// Invoke the widget update callback. |
1400 |
|
foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
1401 |
|
if ( $name === $parsed_id['id_base'] && is_callable( $control['callback'] ) ) { |
1402 |
|
ob_start(); |
1403 |
|
call_user_func_array( $control['callback'], $control['params'] ); |
1404 |
|
ob_end_clean(); |
1405 |
|
break; |
1406 |
|
} |
1407 |
|
} |
1408 |
|
|
1409 |
|
// Clean up any input vars that were manually added |
1410 |
|
foreach ( $added_input_vars as $key ) { |