src/wp-admin/includes/ajax-actions.php 1 location
|
@@ 1909-1920 (lines=12) @@
|
| 1906 |
|
} |
| 1907 |
|
$_POST['widget-id'] = $sidebar; |
| 1908 |
|
|
| 1909 |
|
foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
| 1910 |
|
|
| 1911 |
|
if ( $name == $id_base ) { |
| 1912 |
|
if ( !is_callable( $control['callback'] ) ) |
| 1913 |
|
continue; |
| 1914 |
|
|
| 1915 |
|
ob_start(); |
| 1916 |
|
call_user_func_array( $control['callback'], $control['params'] ); |
| 1917 |
|
ob_end_clean(); |
| 1918 |
|
break; |
| 1919 |
|
} |
| 1920 |
|
} |
| 1921 |
|
|
| 1922 |
|
if ( isset($_POST['delete_widget']) && $_POST['delete_widget'] ) { |
| 1923 |
|
$sidebars[$sidebar_id] = $sidebar; |
src/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 |
|
|
src/wp-includes/class-wp-customize-widgets.php 1 location
|
@@ 1397-1404 (lines=8) @@
|
| 1394 |
|
} |
| 1395 |
|
|
| 1396 |
|
// Invoke the widget update callback. |
| 1397 |
|
foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
| 1398 |
|
if ( $name === $parsed_id['id_base'] && is_callable( $control['callback'] ) ) { |
| 1399 |
|
ob_start(); |
| 1400 |
|
call_user_func_array( $control['callback'], $control['params'] ); |
| 1401 |
|
ob_end_clean(); |
| 1402 |
|
break; |
| 1403 |
|
} |
| 1404 |
|
} |
| 1405 |
|
|
| 1406 |
|
// Clean up any input vars that were manually added |
| 1407 |
|
foreach ( $added_input_vars as $key ) { |