Making WordPress.org


Ignore:
Timestamp:
07/01/2020 06:55:10 PM (4 years ago)
Author:
Otto42
Message:

Plugins Directory: Correct reason display logic for 60 day timer. Fixes #5298. props ipstenu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php

    r9784 r9989  
    229229                $days_passed = (int) ( ( current_time( 'timestamp' ) - mysql2date( 'U', $closed_date ) ) / DAY_IN_SECONDS );
    230230
     231                // If we're closed, it may be permanent.
    231232                if ( $permanent ) {
    232233                    $message .= ' ' . __( 'This closure is permanent.', 'wporg-plugins' );
    233234                } elseif ( $days_passed < 60 ) {
    234235                    $message .= ' ' . __( 'This closure is temporary, pending a full review.', 'wporg-plugins' );
    235                 } else {
    236                     // Display close reason if more than 60 days have passed.
     236                }
     237
     238                // Display close reason if more than 60 days have passed.
     239                if ( $days_passed >= 60 ) {
    237240                    /* translators: %s: plugin close/disable reason */
    238241                    $message .= ' ' . sprintf( __( 'Reason: %s.', 'wporg-plugins' ), $close_reason );
Note: See TracChangeset for help on using the changeset viewer.