Changeset 4388
- Timestamp:
- 11/21/2016 03:53:28 AM (8 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-tools.php
r4311 r4388 55 55 $reviews = $wpdb->get_results( $wpdb->prepare( 56 56 "SELECT 57 post_content, post_title, post_author, post_modified,57 ID, post_content, post_title, post_author, post_modified, 58 58 r.rating as post_rating 59 59 FROM ratings r -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-reviews.php
r4223 r4388 26 26 <div class="plugin-reviews"> 27 27 <?php 28 28 foreach ( $reviews as $review ) : 29 29 $reviewer = get_user_by( 'id', $review->post_author ); 30 30 if ( ! $reviewer ) : … … 37 37 </div><div class="review"> 38 38 <header> 39 <h3 class="review-title"><?php echo $review->post_title; ?></h3> 39 <?php if ( !empty( $review->ID ) ) : ?> 40 <h3 class="review-title"><a class="url" href="<?php echo esc_url( add_query_arg( array( 'p' => $review->ID ), 'https://wordpress.org/support/plugin/' ) ); ?>"><?php echo $review->post_title; ?></a></h3> 41 <?php else: ?> 42 <h3 class="review-title"><?php echo $review->post_title; ?></h3> 43 <?php endif; ?> 40 44 <?php echo Template::dashicons_stars( $review->post_rating ); ?> 41 45 <span class="review-author author vcard"><a class="url fn n" href="<?php echo esc_url( get_author_posts_url( $reviewer->ID ) ); ?>"><?php echo Template::encode( $reviewer->display_name ); ?></a></span>
Note: See TracChangeset
for help on using the changeset viewer.