mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
Anchor the Browse Happy dashboard widget to the top. Reverts [18295], [18296]. Fixes #17781, #17323.
git-svn-id: https://develop.svn.wordpress.org/trunk@18314 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -171,7 +171,12 @@ function wp_add_dashboard_widget( $widget_id, $widget_name, $callback, $control_
|
||||
$location = 'normal';
|
||||
if ( in_array($widget_id, $side_widgets) )
|
||||
$location = 'side';
|
||||
add_meta_box( $widget_id, $widget_name , $callback, $screen->id, $location, 'core' );
|
||||
|
||||
$priority = 'core';
|
||||
if ( 'dashboard_browser_nag' === $widget_id )
|
||||
$priority = 'high';
|
||||
|
||||
add_meta_box( $widget_id, $widget_name, $callback, $screen->id, $location, $priority );
|
||||
}
|
||||
|
||||
function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
|
||||
|
||||
Reference in New Issue
Block a user