Initialize some options for the secondary dashboard widget. see #11783

git-svn-id: https://develop.svn.wordpress.org/trunk@13959 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-04-03 07:31:28 +00:00
parent fdd1d24399
commit 11396bd92d
1 changed files with 5 additions and 2 deletions

View File

@ -73,7 +73,7 @@ function wp_dashboard_setup() {
'items' => 2,
'show_summary' => 1,
'show_author' => 0,
'show_date' => 1
'show_date' => 1,
);
}
wp_add_dashboard_widget( 'dashboard_primary', $widget_options['dashboard_primary']['title'], 'wp_dashboard_primary', 'wp_dashboard_primary_control' );
@ -85,7 +85,10 @@ function wp_dashboard_setup() {
'link' => apply_filters( 'dashboard_secondary_link', __( 'http://planet.wordpress.org/' ) ),
'url' => apply_filters( 'dashboard_secondary_feed', __( 'http://planet.wordpress.org/feed/' ) ),
'title' => apply_filters( 'dashboard_secondary_title', __( 'Other WordPress News' ) ),
'items' => 5
'items' => 5,
'show_summary' => 0,
'show_author' => 0,
'show_date' => 0,
);
}
wp_add_dashboard_widget( 'dashboard_secondary', $widget_options['dashboard_secondary']['title'], 'wp_dashboard_secondary', 'wp_dashboard_secondary_control' );