WordPress.org

Making WordPress.org

Changeset 3431


Ignore:
Timestamp:
06/18/2016 01:28:13 PM (5 years ago)
Author:
obenland
Message:

Plugin Directory: Use correct meta key to retreive the amount of reviews.

See #1719.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/template-parts/plugin-single.php

    r3428 r3431  
    6363                <?php if ( 'reviews' === $section_slug ) : ?>
    6464                <a class="reviews-link" href="<?php echo esc_url( 'https://wordpress.org/support/view/plugin-reviews/' . get_post()->post_name . '/' ); ?>">
    65                     <?php printf( __( 'Read all %s reviews', 'wporg-plugins' ), get_post_meta( get_the_ID(), 'num_ratings', true ) ); ?>
     65                    <?php printf( __( 'Read all %s reviews', 'wporg-plugins' ), array_sum( get_post_meta( get_the_ID(), 'ratings', true ) ) ); ?>
    6666                </a>
    6767                <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.