Ticket #5298: 5298.diff
File 5298.diff, 1.1 KB (added by , 5 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/inc/template-tags.php
228 228 229 229 $days_passed = (int) ( ( current_time( 'timestamp' ) - mysql2date( 'U', $closed_date ) ) / DAY_IN_SECONDS ); 230 230 231 // If we're closed, it may be permanent. 231 232 if ( $permanent ) { 232 233 $message .= ' ' . __( 'This closure is permanent.', 'wporg-plugins' ); 233 234 } elseif ( $days_passed < 60 ) { 234 235 $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 ) { 237 240 /* translators: %s: plugin close/disable reason */ 238 241 $message .= ' ' . sprintf( __( 'Reason: %s.', 'wporg-plugins' ), $close_reason ); 239 242 }