Changeset 27583 for trunk/src/wp-admin/includes/dashboard.php
- Timestamp:
- 03/18/2014 12:55:42 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r27563 r27583 531 531 532 532 $future_posts = wp_dashboard_recent_posts( array( 533 'display' => 2,534 533 'max' => 5, 535 534 'status' => 'future', … … 539 538 ) ); 540 539 $recent_posts = wp_dashboard_recent_posts( array( 541 'display' => 2,542 540 'max' => 5, 543 541 'status' => 'publish', … … 567 565 * An array of query and display arguments. 568 566 * 569 * @type int $display Number of posts to display. 570 * @type int $max Maximum number of posts to query. 567 * @type int $max Number of posts to display. 571 568 * @type string $status Post status. 572 569 * @type string $order Designates ascending ('ASC') or descending ('DESC') order. … … 592 589 echo '<div id="' . $args['id'] . '" class="activity-block">'; 593 590 594 if ( $posts->post_count > $args['display'] ) {595 echo '<small class="show-more hide-if-no-js"><a href="#">' . sprintf( __( 'See %s more…'), $posts->post_count - intval( $args['display'] ) ) . '</a></small>';596 }597 598 591 echo '<h4>' . $args['title'] . '</h4>'; 599 592 … … 626 619 ); 627 620 628 $hidden = $i >= $args['display'] ? ' class="hidden"' : ''; 629 echo "<li{$hidden}>$text</li>"; 630 $i++; 621 echo "<li>$text</li>"; 631 622 } 632 623
Note: See TracChangeset
for help on using the changeset viewer.