Changeset 17807
- Timestamp:
- 05/05/2011 05:54:19 AM (13 years ago)
- Location:
- branches/3.1/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.1/wp-admin/includes/class-wp-plugins-list-table.php
r17450 r17807 196 196 } 197 197 198 function display_tablenav( $which ) {199 global $status;200 201 if ( !in_array( $status, array( 'mustuse', 'dropins' ) ) )202 parent::display_tablenav( $which );203 }204 205 198 function get_views() { 206 199 global $totals, $status; … … 287 280 global $status; 288 281 289 if ( 'recently_activated' == $status ) { ?> 290 <div class="alignleft actions"> 291 <?php submit_button( __( 'Clear List' ), 'secondary', 'clear-recent-list', false ); ?> 292 </div> 293 <?php } 282 if ( ! in_array($status, array('recently_activated', 'mustuse', 'dropins') ) ) 283 return; 284 285 echo '<div class="alignleft actions">'; 286 287 if ( 'recently_activated' == $status ) 288 submit_button( __( 'Clear List' ), 'secondary', 'clear-recent-list', false ); 289 elseif ( 'top' == $which && 'mustuse' == $status ) 290 echo '<p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>'; 291 elseif ( 'top' == $which && 'dropins' == $status ) 292 echo '<p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>'; 293 294 echo '</div>'; 294 295 } 295 296 -
branches/3.1/wp-admin/plugins.php
r17322 r17807 408 408 <input type="hidden" name="paged" value="<?php echo esc_attr($page) ?>" /> 409 409 410 <?php411 if ( 'mustuse' == $status )412 echo '<br class="clear" /><p>' . __( 'Files in the <code>/wp-content/mu-plugins</code> directory are executed automatically.' ) . '</p>';413 elseif ( 'dropins' == $status )414 echo '<br class="clear" /><p>' . __( 'Drop-ins are advanced plugins in the <code>/wp-content</code> directory that replace WordPress functionality when present.' ) . '</p>';415 ?>416 417 410 <?php $wp_list_table->display(); ?> 418 411 </form>
Note: See TracChangeset
for help on using the changeset viewer.