Making WordPress.org


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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.