From 961899214e50d241db4685a12ad5984f0e56cf7f Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 11 Mar 2014 22:13:05 +0000 Subject: [PATCH] Present a normal admin page when bailing out of the Plugin Editor screen. Fixes #27067. Props SergeyBiryukov. git-svn-id: https://develop.svn.wordpress.org/trunk@27506 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/plugin-editor.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/plugin-editor.php b/src/wp-admin/plugin-editor.php index 33cb05bcfb..26c14bc251 100644 --- a/src/wp-admin/plugin-editor.php +++ b/src/wp-admin/plugin-editor.php @@ -24,8 +24,17 @@ wp_reset_vars( array( 'action', 'error', 'file', 'plugin' ) ); $plugins = get_plugins(); -if ( empty($plugins) ) - wp_die( __('There are no plugins installed on this site.') ); +if ( empty( $plugins ) ) { + include( ABSPATH . 'wp-admin/admin-header.php' ); + ?> +
+

+

+
+