Making WordPress.org


Ignore:
Timestamp:
11/21/2016 08:14:38 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: Link the ratings count to the reviews.

See #1719;

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-template.php

    r4263 r4394  
    9696                '<meta itemprop="ratingValue" content="' . esc_attr( $rating ) . '"/>' .
    9797                Template::dashicons_stars( $rating ) .
    98                 /* translators: 1: number of ratings */
    99                 '<span class="rating-count">(' . sprintf( __( '%1$s<span class="screen-reader-text"> total ratings</span>' ), esc_html( $num_ratings ) ) . ')</span>' .
     98                '<span class="rating-count">(' .
     99                    '<a href="https://wordpress.org/support/plugin/' . $post->post_name . '/reviews/">' .
     100                    sprintf(
     101                        /* translators: 1: number of ratings */
     102                        __( '%1$s<span class="screen-reader-text"> total ratings</span>' ),
     103                        esc_html( $num_ratings )
     104                    ) .
     105                '</a>' .
     106                ')</span>' .
    100107            '</div>';
    101108    }
Note: See TracChangeset for help on using the changeset viewer.