diff --git a/src/wp-admin/includes/dashboard.php b/src/wp-admin/includes/dashboard.php
index 0f62ebc..f546487 100644
|
a
|
b
|
function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) { |
| 527 | 527 | function wp_dashboard_site_activity() { |
| 528 | 528 | |
| 529 | 529 | echo '<div id="activity-widget">'; |
| 530 | | |
| 531 | | $future_posts = wp_dashboard_recent_posts( array( |
| 532 | | 'display' => 2, |
| 533 | | 'max' => 5, |
| 534 | | 'status' => 'future', |
| 535 | | 'order' => 'ASC', |
| 536 | | 'title' => __( 'Publishing Soon' ), |
| 537 | | 'id' => 'future-posts', |
| 538 | | ) ); |
| | 530 | |
| | 531 | // only show if user has relevant capabilities |
| | 532 | if (current_user_can('edit_posts')) { |
| | 533 | $future_posts = wp_dashboard_recent_posts( array( |
| | 534 | 'display' => 2, |
| | 535 | 'max' => 5, |
| | 536 | 'status' => 'future', |
| | 537 | 'order' => 'ASC', |
| | 538 | 'title' => __( 'Publishing Soon' ), |
| | 539 | 'id' => 'future-posts', |
| | 540 | ) ); |
| | 541 | } |
| | 542 | |
| 539 | 543 | $recent_posts = wp_dashboard_recent_posts( array( |
| 540 | 544 | 'display' => 2, |
| 541 | 545 | 'max' => 5, |
| … |
… |
function wp_dashboard_site_activity() { |
| 544 | 548 | 'title' => __( 'Recently Published' ), |
| 545 | 549 | 'id' => 'published-posts', |
| 546 | 550 | ) ); |
| 547 | | |
| 548 | | $recent_comments = wp_dashboard_recent_comments(); |
| 549 | | |
| | 551 | |
| | 552 | if (current_user_can('edit_posts')) { |
| | 553 | $recent_comments = wp_dashboard_recent_comments(); |
| | 554 | } |
| | 555 | |
| 550 | 556 | if ( !$future_posts && !$recent_posts && !$recent_comments ) { |
| 551 | 557 | echo '<div class="no-activity">'; |
| 552 | 558 | echo '<p class="smiley"></p>'; |