Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
- Timestamp:
- 12/19/2017 04:22:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-controls.php
r6162 r6287 1 1 <?php 2 2 namespace WordPressdotorg\Plugin_Directory\Admin\Metabox; 3 3 4 use WordPressdotorg\Plugin_Directory\Admin\Status_Transitions; 4 5 use WordPressdotorg\Plugin_Directory\Template; … … 90 91 } 91 92 92 $close_reasons 93 $close_reason 93 $close_reasons = Template::get_close_reasons(); 94 $close_reason = (string) get_post_meta( $post->ID, '_close_reason', true ); 94 95 95 96 $reason_label = Template::get_close_reason(); … … 110 111 <?php endif; ?> 111 112 112 <?php if ( 113 <?php 114 if ( 113 115 ( in_array( 'closed', $statuses, true ) || in_array( 'disabled', $statuses, true ) ) 114 116 && 115 117 ( ! in_array( $post->post_status, array( 'closed', 'disabled' ) ) || $reason_unknown ) 116 ) : ?> 118 ) : 119 ?> 117 120 118 121 <p> … … 134 137 135 138 <?php endforeach; ?> 136 </div><!-- .misc-pub-section --><?php 139 </div><!-- .misc-pub-section --> 140 <?php 137 141 } 138 142 … … 148 152 <label for="tested_with"><?php _e( 'Tested With:', 'wporg-plugins' ); ?></label> 149 153 <strong id="tested-with-display"><?php echo ( $tested_up_to ? sprintf( 'WordPress %s', $tested_up_to ) : $unknown_string ); ?></strong> 150 151 < /div><!-- .misc-pub-section --><?php154 </div><!-- .misc-pub-section --> 155 <?php 152 156 } 153 157
Note: See TracChangeset
for help on using the changeset viewer.