Making WordPress.org

Changeset 9128


Ignore:
Timestamp:
09/07/2019 10:02:20 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Plugin Directory Theme: When determining the permanence of plugin closure, check if the plugin has committers.

Props Ipstenu.
See #4718, #4694.

Location:
sites/trunk/wordpress.org/public_html/wp-content
Files:
2 edited

Legend:

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

    r9127 r9128  
    4949                            <div class="header-bottom">
    5050                                <span class="review-author author vcard"><?php the_author_posts_link(); ?></span>
    51                                 <span class="review-date"><?php echo date_i18n( get_option( 'date_format'), strtotime( $review->post_modified ) ); ?></span>
     51                                <span class="review-date"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $review->post_modified ) ); ?></span>
    5252                            </div>
    5353                        </header>
    54                         <div class="review-content"><?php echo wp_strip_all_tags(get_the_content()); ?></div>
     54                        <div class="review-content"><?php echo wp_strip_all_tags( get_the_content() ); ?></div>
    5555                    </div>
    5656                </article>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php

    r9116 r9128  
    224224
    225225                // Determine permanence of closure.
    226                 $contributors = get_the_terms( $post, 'plugin_contributors' );
    227                 $permanent    = ( 'author-request' === $close_reason || ! $contributors || is_wp_error( $contributors ) );
     226                $committers = Tools::get_plugin_committers( $post->post_name );
     227                $permanent  = ( 'author-request' === $close_reason || ! $committers );
    228228
    229229                $days_passed = (int) ( ( current_time( 'timestamp' ) - mysql2date( 'U', $closed_date ) ) / DAY_IN_SECONDS );
Note: See TracChangeset for help on using the changeset viewer.