From f0f492a03092fb622619f9e64d2cba61b063da64 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Tue, 11 Mar 2014 22:14:14 +0000 Subject: [PATCH] Present a normal admin page when bailing out of the Plugin Editor screen. Fixes #27067. Props SergeyBiryukov. Built from https://develop.svn.wordpress.org/trunk@27506 git-svn-id: http://core.svn.wordpress.org/trunk@27349 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/plugin-editor.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/wp-admin/plugin-editor.php b/wp-admin/plugin-editor.php index 33cb05bcfb..26c14bc251 100644 --- a/wp-admin/plugin-editor.php +++ b/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' ); + ?> +
+

+

+
+