Changeset 13310 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
- Timestamp:
- 03/12/2024 05:27:53 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php
r13153 r13310 164 164 global $wp_query; 165 165 166 $metas 166 $metas = []; 167 167 168 168 if ( is_singular( 'plugin' ) ) { … … 306 306 * @return string 307 307 */ 308 public static function get_star_rating( $post = null ) {308 public static function get_star_rating( $post = null, $linked = true ) { 309 309 $post = get_post( $post ); 310 310 … … 322 322 Template::dashicons_stars( $rating ) . 323 323 '<span class="rating-count">(' . 324 '<a href="https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/">'.324 ( $linked ? '<a href="https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/">' : '' ) . 325 325 sprintf( 326 326 /* translators: 1: number of ratings */ … … 328 328 number_format_i18n( $num_ratings ) 329 329 ) . 330 '</a>'.330 ( $linked ? '</a>' : '' ) . 331 331 ')</span>' . 332 332 '</div>';
Note: See TracChangeset
for help on using the changeset viewer.