mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 05:38:07 +01:00
Show View All on hover
git-svn-id: https://develop.svn.wordpress.org/trunk@9694 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9ff0e361d6
commit
ac3d78f694
@ -28,7 +28,9 @@ function wp_dashboard_setup() {
|
|||||||
wp_add_dashboard_widget( 'dashboard_right_now', __( 'Right Now' ), 'wp_dashboard_right_now' );
|
wp_add_dashboard_widget( 'dashboard_right_now', __( 'Right Now' ), 'wp_dashboard_right_now' );
|
||||||
|
|
||||||
// Recent Comments Widget
|
// Recent Comments Widget
|
||||||
$recent_comments_title = ( current_user_can('edit_posts') ) ? sprintf( __( 'Recent Comments <a href="%s">View all</a>' ), 'edit-comments.php' ) : __( 'Recent Comments' );
|
$recent_comments_title = __( 'Recent Comments' );
|
||||||
|
if ( current_user_can('edit_posts') )
|
||||||
|
$recent_comments_title .= ' <a href="edit-comments.php" class="edit-box open-box">' . __('View all') . '</a>';
|
||||||
wp_add_dashboard_widget( 'dashboard_recent_comments', $recent_comments_title, 'wp_dashboard_recent_comments' );
|
wp_add_dashboard_widget( 'dashboard_recent_comments', $recent_comments_title, 'wp_dashboard_recent_comments' );
|
||||||
|
|
||||||
// Incoming Links Widget
|
// Incoming Links Widget
|
||||||
@ -54,8 +56,7 @@ function wp_dashboard_setup() {
|
|||||||
|
|
||||||
// Recent Drafts
|
// Recent Drafts
|
||||||
if ( current_user_can('edit_posts') )
|
if ( current_user_can('edit_posts') )
|
||||||
wp_add_dashboard_widget( 'dashboard_recent_drafts', sprintf( __( 'Recent Drafts <a href="%s">View all</a>' ), 'edit.php?post_status=draft' ), 'wp_dashboard_recent_drafts' );
|
wp_add_dashboard_widget( 'dashboard_recent_drafts', __( 'Recent Drafts') . ' <a href="edit.php?post_status=draft" class="edit-box open-box">' . __('View all') . '</a>', 'wp_dashboard_recent_drafts' );
|
||||||
|
|
||||||
|
|
||||||
// Primary feed (Dev Blog) Widget
|
// Primary feed (Dev Blog) Widget
|
||||||
if ( !isset( $widget_options['dashboard_primary'] ) ) {
|
if ( !isset( $widget_options['dashboard_primary'] ) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user