Making WordPress.org

Ticket #4718: 4718-2.diff

File 4718-2.diff, 872 bytes (added by Ipstenu, 5 years ago)
  • trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php

     
    224224
    225225                                // Determine permanence of closure.
    226226                                $contributors = get_the_terms( $post, 'plugin_contributors' );
    227                                 $permanent    = ( 'author-request' === $close_reason || ! $contributors || is_wp_error( $contributors ) );
     227                                $permanent    = ( 'author-request' === $close_reason || ! $contributors || is_wp_error( $contributors ) ) ? true : false;
    228228
    229229                                $days_passed = (int) ( ( current_time( 'timestamp' ) - mysql2date( 'U', $closed_date ) ) / DAY_IN_SECONDS );
    230230