Changeset 4008 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
- Timestamp:
- 09/08/2016 09:03:12 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-directory.php
r3680 r4008 818 818 $post = get_post( $object_id ); 819 819 // The WordPress.org global ratings functions 820 if ( ! function_exists( 'wporg_get_rating_avg' ) ) {820 if ( ! method_exists( '\WPORG_Ratings', 'get_avg_rating' ) ) { 821 821 break; 822 822 } 823 823 824 $rating = wporg_get_rating_avg( 'plugin', $post->post_name );824 $rating = \WPORG_Ratings::get_avg_rating( 'plugin', $post->post_name ); 825 825 $value = array( $rating ); 826 826 break; … … 828 828 case 'ratings': 829 829 $post = get_post( $object_id ); 830 if ( ! function_exists( 'wporg_get_rating_counts' ) ) {830 if ( ! method_exists( '\WPORG_Ratings', 'get_rating_counts' ) ) { 831 831 break; 832 832 } 833 833 834 $ratings = wporg_get_rating_counts( 'plugin', $post->post_name );834 $ratings = \WPORG_Ratings::get_rating_counts( 'plugin', $post->post_name ); 835 835 $value = array( $ratings ); 836 836 break;
Note: See TracChangeset
for help on using the changeset viewer.