Changeset 4433
- Timestamp:
- 11/28/2016 12:50:25 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
r4410 r4433 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 $ratings = get_post_meta( get_the_ID(), 'ratings', true ) ?: array(); 19 $review_count = array_sum( $ratings ); 19 20 20 21 if ( empty( $reviews ) ) {
Note: See TracChangeset
for help on using the changeset viewer.