Ticket #5086: active-installs.diff
File active-installs.diff, 1.5 KB (added by , 5 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
90 90 $statuses = Status_Transitions::get_allowed_transitions( $post->post_status ); 91 91 } 92 92 93 $close_reasons = Template::get_close_reasons(); 94 $close_reason = (string) get_post_meta( $post->ID, '_close_reason', true ); 93 $close_reasons = Template::get_close_reasons(); 94 $close_reason = (string) get_post_meta( $post->ID, '_close_reason', true ); 95 $active_installs = (int) get_post_meta( $post->ID, 'active_installs', true ); 95 96 96 97 $reason_label = Template::get_close_reason(); 97 98 $reason_unknown = ( _x( 'Unknown', 'unknown close reason', 'wporg-plugins' ) === $reason_label ); … … 108 109 109 110 <p><?php printf( __( 'Disable Reason: %s', 'wporg-plugins' ), '<strong>' . $reason_label . '</strong>' ); ?></p> 110 111 112 <?php elseif ( 'publish' === $post->post_status ) : ?> 113 114 <?php if ( $active_installs >= '20000' ) : ?> 115 <p><strong><?php _e( 'Notice:', 'wporg-plugins' ); ?></strong> <?php _e( 'Due to the large volume of active users, the developers should be warned and their plugin remain open save under extreme circumstances.', 'wporg-plugins' ); ?>.</p> 116 <?php endif; ?> 117 111 118 <?php endif; ?> 112 119 113 120 <?php