Changeset 3009 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
- Timestamp:
- 04/26/2016 07:33:28 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/list-table/class-plugin-posts.php
r2998 r3009 2 2 namespace WordPressdotorg\Plugin_Directory\Admin\List_Table; 3 3 use \WordPressdotorg\Plugin_Directory\Tools; 4 use \WordPressdotorg\Plugin_Directory\Template; 4 5 5 6 _get_list_table( 'WP_Posts_List_Table' ); … … 159 160 */ 160 161 public function column_rating( $post ) { 161 if ( function_exists( 'wporg_get_dashicons_stars' ) ) { 162 echo wporg_get_dashicons_stars( get_post_meta( $post->ID, 'rating', true ) ); 163 } 162 echo Template::dashicons_stars( get_post_meta( $post->ID, 'rating', true ) ); 164 163 } 165 164 … … 170 169 */ 171 170 public function column_installs( $post ) { 172 $active_installs = get_post_meta( $post->ID, 'active_installs', true ); 173 if ( $active_installs >= 1000000 ) { 174 _e( '1+ million', 'wporg-plugins' ); 175 } elseif ( $active_installs <= 10 ) { 176 _e( 'Less than 10', 'wporg-plugins' ); 177 } else { 178 printf( "%s+", number_format_i18n( $active_installs ) ); 179 } 171 echo Template::active_installs( false, $post ); 180 172 } 181 173
Note: See TracChangeset
for help on using the changeset viewer.