Making WordPress.org

Changeset 4394


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

Plugin Directory: Link the ratings count to the reviews.

See #1719;

Location:
sites/trunk/wordpress.org/public_html/wp-content
Files:
4 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    }
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/components/plugin-ratings/style.scss

    r4223 r4394  
    1616            display: none;
    1717        }
     18
     19        a {
     20            color: inherit;
     21            cursor: hand;
     22            text-decoration: none;
     23        }
    1824    }
    1925}
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style-rtl.css

    r4393 r4394  
    20032003.site-main.single .plugin-rating .rating-count {
    20042004  display: none;
     2005}
     2006
     2007.plugin-rating .rating-count a {
     2008  color: inherit;
     2009  cursor: hand;
     2010  text-decoration: none;
    20052011}
    20062012
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/css/style.css

    r4393 r4394  
    20032003.site-main.single .plugin-rating .rating-count {
    20042004  display: none;
     2005}
     2006
     2007.plugin-rating .rating-count a {
     2008  color: inherit;
     2009  cursor: hand;
     2010  text-decoration: none;
    20052011}
    20062012
Note: See TracChangeset for help on using the changeset viewer.