Making WordPress.org


Ignore:
Timestamp:
06/18/2016 03:25:56 PM (9 years ago)
Author:
obenland
Message:

Plugin Directory: Revert [3439] until we have caching figured out.

See #1719, #1579.

File:
1 edited

Legend:

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

    r3439 r3440  
    1515     */
    1616    static function display() {
    17         $reviews = Tools::get_plugin_reviews( get_post()->post_name, array(
    18             'number' => 2,
    19         ) );
     17        $reviews = Tools::get_plugin_reviews( get_post()->post_name );
    2018
    2119        if ( empty( $reviews ) ) {
     
    2927            <?php
    3028            foreach ( $reviews as $review ) :
    31                 $reviewer = get_user_by( 'id', $review->topic_poster );
     29                $reviewer = get_user_by( 'id', $review->post_author );
    3230                if ( ! $reviewer ) :
    3331                    continue;
     
    3937                    </div><div class="review">
    4038                        <header>
    41                             <h3 class="review-title"><?php echo $review->topic_title; ?></h3>
    42                             <?php echo Template::dashicons_stars( $review->rating ); ?>
    43                             <span class="review-author author vcard"><a class="url fn n" href="<?php esc_url( 'https://profile.wordpress.org/' . $reviewer->user_nicename . '/' ); ?>"><?php echo Template::encode( $reviewer->display_name ); ?></a></span>
     39                            <h3 class="review-title"><?php echo $review->post_title; ?></h3>
     40                            <?php echo Template::dashicons_stars( $review->post_rating ); ?>
     41                            <span class="review-author author vcard"><a class="url fn n" href="<?php esc_url( get_author_posts_url( $reviewer->ID ) ); ?>"><?php echo Template::encode( $reviewer->display_name ); ?></a></span>
    4442                        </header>
    45                         <p class="review-content"><?php echo $review->post_text; ?></p>
     43                        <p class="review-content"><?php echo $review->post_content; ?></p>
    4644                    </div>
    4745                </article>
Note: See TracChangeset for help on using the changeset viewer.