Restore do_meta_boxes actions for the dashboard. fixes #8240
git-svn-id: https://develop.svn.wordpress.org/trunk@9729 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
528fe647e4
commit
8b64a15a90
|
@ -104,6 +104,9 @@ function wp_dashboard_setup() {
|
||||||
|
|
||||||
foreach ( $dashboard_widgets as $widget_id )
|
foreach ( $dashboard_widgets as $widget_id )
|
||||||
wp_add_dashboard_widget( $widget_id, $wp_registered_widgets[$widget_id]['name'], $wp_registered_widgets[$widget_id]['callback'], $wp_registered_widget_controls[$widget_id]['callback'] );
|
wp_add_dashboard_widget( $widget_id, $wp_registered_widgets[$widget_id]['name'], $wp_registered_widgets[$widget_id]['callback'], $wp_registered_widget_controls[$widget_id]['callback'] );
|
||||||
|
|
||||||
|
do_action('do_meta_boxes', 'dashboard', 'normal', '');
|
||||||
|
do_action('do_meta_boxes', 'dashboard', 'side', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null ) {
|
function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_callback = null ) {
|
||||||
|
|
Loading…
Reference in New Issue