Changeset 4622 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-ratings.php
- Timestamp:
- 01/10/2017 10:13:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/widgets/class-ratings.php
r3935 r4622 30 30 31 31 $post = get_post(); 32 $rating = get_post_meta( $post->ID, 'rating', true ) ;32 $rating = get_post_meta( $post->ID, 'rating', true ) ?: 0; 33 33 $ratings = get_post_meta( $post->ID, 'ratings', true ) ?: array(); 34 34 $num_ratings = array_sum( $ratings );
Note: See TracChangeset
for help on using the changeset viewer.