Ticket #2035: meta-2035.2.patch
File meta-2035.2.patch, 1.3 KB (added by , 8 years ago) |
---|
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
134 134 <div class="review-ratings" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> 135 135 <div class="col-3"> 136 136 <div class="reviews-about" style="display:none;" itemprop="itemReviewed"><?php echo esc_html( $this->object->post_title ); ?></div> 137 <div class="reviews-total-count"><?php printf( _n( '<span itemprop="reviewCount">%d</span> review', '<span itemprop="reviewCount">%d</span> reviews', $this->reviews_count ), $this->reviews_count ); ?></div> 137 <div class="reviews-total-count"><?php 138 /* translators: %s: number of reviews */ 139 printf( _n( '%d review', '%d reviews', $this->reviews_count, 'wporg-forums' ), 140 '<span itemprop="reviewCount">' . number_format_i18n( $this->reviews_count ) . '</span>' 141 ); 142 ?></div> 138 143 <?php 139 144 foreach ( array( 5, 4, 3, 2, 1 ) as $rating ) { 140 145 $ratings_count = isset( $this->ratings_counts[ $rating ] ) ? $this->ratings_counts[ $rating ] : 0;