Changeset 4410 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php
- Timestamp:
- 11/24/2016 01:38:06 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php
r4388 r4410 16 16 static function display() { 17 17 $reviews = Tools::get_plugin_reviews( get_post()->post_name ); 18 $review_count = array_sum( get_post_meta( get_the_ID(), 'ratings', true ) ); 18 19 19 20 if ( empty( $reviews ) ) { … … 51 52 </div> 52 53 54 <a class="reviews-link" href="<?php echo esc_url( 'https://wordpress.org/support/plugin/' . get_post()->post_name . '/reviews/' ); ?>"> 55 <?php printf( __( 'Read all %s reviews', 'wporg-plugins' ), number_format_i18n( $review_count ) ); ?> 56 </a> 57 53 58 <?php 54 59 return ob_get_clean();
Note: See TracChangeset
for help on using the changeset viewer.