src/wp-admin/includes/ajax-actions.php 1 location
|
@@ 1970-1981 (lines=12) @@
|
| 1967 |
|
} |
| 1968 |
|
$_POST['widget-id'] = $sidebar; |
| 1969 |
|
|
| 1970 |
|
foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
| 1971 |
|
|
| 1972 |
|
if ( $name == $id_base ) { |
| 1973 |
|
if ( !is_callable( $control['callback'] ) ) |
| 1974 |
|
continue; |
| 1975 |
|
|
| 1976 |
|
ob_start(); |
| 1977 |
|
call_user_func_array( $control['callback'], $control['params'] ); |
| 1978 |
|
ob_end_clean(); |
| 1979 |
|
break; |
| 1980 |
|
} |
| 1981 |
|
} |
| 1982 |
|
|
| 1983 |
|
if ( isset($_POST['delete_widget']) && $_POST['delete_widget'] ) { |
| 1984 |
|
$sidebars[$sidebar_id] = $sidebar; |
src/wp-admin/widgets.php 1 location
|
@@ 172-181 (lines=10) @@
|
| 169 |
|
|
| 170 |
|
$_POST['widget-id'] = $sidebar; |
| 171 |
|
|
| 172 |
|
foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
| 173 |
|
if ( $name != $id_base || !is_callable($control['callback']) ) |
| 174 |
|
continue; |
| 175 |
|
|
| 176 |
|
ob_start(); |
| 177 |
|
call_user_func_array( $control['callback'], $control['params'] ); |
| 178 |
|
ob_end_clean(); |
| 179 |
|
|
| 180 |
|
break; |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
$sidebars_widgets[$sidebar_id] = $sidebar; |
| 184 |
|
|
src/wp-includes/class-wp-customize-widgets.php 1 location
|
@@ 1458-1465 (lines=8) @@
|
| 1455 |
|
} |
| 1456 |
|
|
| 1457 |
|
// Invoke the widget update callback. |
| 1458 |
|
foreach ( (array) $wp_registered_widget_updates as $name => $control ) { |
| 1459 |
|
if ( $name === $parsed_id['id_base'] && is_callable( $control['callback'] ) ) { |
| 1460 |
|
ob_start(); |
| 1461 |
|
call_user_func_array( $control['callback'], $control['params'] ); |
| 1462 |
|
ob_end_clean(); |
| 1463 |
|
break; |
| 1464 |
|
} |
| 1465 |
|
} |
| 1466 |
|
|
| 1467 |
|
// Clean up any input vars that were manually added |
| 1468 |
|
foreach ( $added_input_vars as $key ) { |