Ticket #27067: 27067.patch
File 27067.patch, 731 bytes (added by , 11 years ago) |
---|
-
src/wp-admin/plugin-editor.php
24 24 25 25 $plugins = get_plugins(); 26 26 27 if ( empty($plugins) ) 28 wp_die( __('There are no plugins installed on this site.') ); 27 if ( empty( $plugins ) ) { 28 include( ABSPATH . 'wp-admin/admin-header.php' ); 29 ?> 30 <div class="wrap"> 31 <h2><?php echo esc_html( $title ); ?></h2> 32 <div id="message" class="error"><p><?php _e( 'There are no plugins installed on this site.' ); ?></p></div> 33 </div> 34 <?php 35 include( ABSPATH . 'wp-admin/admin-footer.php' ); 36 exit; 37 } 29 38 30 39 if ( $file ) { 31 40 $plugin = $file;