Remove the "See more" toggle from the At a Glance dashboard widget. Fixes #26614.

git-svn-id: https://develop.svn.wordpress.org/trunk@27583 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2014-03-18 12:55:42 +00:00
parent a053f70f11
commit d91dd88edc
3 changed files with 2 additions and 23 deletions

View File

@@ -530,7 +530,6 @@ function wp_dashboard_site_activity() {
echo '<div id="activity-widget">';
$future_posts = wp_dashboard_recent_posts( array(
'display' => 2,
'max' => 5,
'status' => 'future',
'order' => 'ASC',
@@ -538,7 +537,6 @@ function wp_dashboard_site_activity() {
'id' => 'future-posts',
) );
$recent_posts = wp_dashboard_recent_posts( array(
'display' => 2,
'max' => 5,
'status' => 'publish',
'order' => 'DESC',
@@ -566,8 +564,7 @@ function wp_dashboard_site_activity() {
* @param array $args {
* An array of query and display arguments.
*
* @type int $display Number of posts to display.
* @type int $max Maximum number of posts to query.
* @type int $max Number of posts to display.
* @type string $status Post status.
* @type string $order Designates ascending ('ASC') or descending ('DESC') order.
* @type string $title Section title.
@@ -591,10 +588,6 @@ function wp_dashboard_recent_posts( $args ) {
echo '<div id="' . $args['id'] . '" class="activity-block">';
if ( $posts->post_count > $args['display'] ) {
echo '<small class="show-more hide-if-no-js"><a href="#">' . sprintf( __( 'See %s more&hellip;'), $posts->post_count - intval( $args['display'] ) ) . '</a></small>';
}
echo '<h4>' . $args['title'] . '</h4>';
echo '<ul>';
@@ -625,9 +618,7 @@ function wp_dashboard_recent_posts( $args ) {
_draft_or_post_title()
);
$hidden = $i >= $args['display'] ? ' class="hidden"' : '';
echo "<li{$hidden}>$text</li>";
$i++;
echo "<li>$text</li>";
}
echo '</ul>';