WordPress.org

Make WordPress Core

Ticket #26614: 26614.patch

File 26614.patch, 827 bytes (added by SergeyBiryukov, 6 years ago)
  • src/wp-admin/includes/dashboard.php

     
    585585                echo '<div id="' . $args['id'] . '" class="activity-block">';
    586586
    587587                if ( $posts->post_count > $args['display'] ) {
    588                         echo '<small class="show-more hide-if-no-js"><a href="#">' . sprintf( __( 'See %s more&hellip;'), $posts->post_count - intval( $args['display'] ) ) . '</a></small>';
     588                        $count = $posts->post_count - intval( $args['display'] );
     589                        $text = sprintf( _n( 'See %s more&hellip;', 'See %s more&hellip;', $count ), $count );
     590                        echo '<small class="show-more hide-if-no-js"><a href="#">' . $text . '</a></small>';
    589591                }
    590592
    591593                echo '<h4>' . $args['title'] . '</h4>';