Make WordPress Core

Ticket #27067: 27067.patch

File 27067.patch, 731 bytes (added by SergeyBiryukov, 11 years ago)
  • src/wp-admin/plugin-editor.php

     
    2424
    2525$plugins = get_plugins();
    2626
    27 if ( empty($plugins) )
    28         wp_die( __('There are no plugins installed on this site.') );
     27if ( 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}
    2938
    3039if ( $file ) {
    3140        $plugin = $file;