Making WordPress.org


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

Plugin Directory Theme: Correct the close reason check when determining the permanence of plugin closure.

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

    r9128 r9129  
    225225                // Determine permanence of closure.
    226226                $committers = Tools::get_plugin_committers( $post->post_name );
    227                 $permanent  = ( 'author-request' === $close_reason || ! $committers );
     227                $permanent  = ( __( 'Author Request', 'wporg-plugins' ) === $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.