From c9d95475c605403568762b339a2f37b3705f5673 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 22 Jan 2017 02:32:57 +0000 Subject: [PATCH] Text Changes: Add a period to the only `wp_die()` message that didn't have it: "Invalid plugin page". Props Presskopp. Fixes #39664. git-svn-id: https://develop.svn.wordpress.org/trunk@39941 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/admin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/admin.php b/src/wp-admin/admin.php index 2dd315daf9..88a4aa480d 100644 --- a/src/wp-admin/admin.php +++ b/src/wp-admin/admin.php @@ -221,8 +221,9 @@ if ( isset($plugin_page) ) { */ do_action( $page_hook ); } else { - if ( validate_file($plugin_page) ) - wp_die(__('Invalid plugin page')); + if ( validate_file( $plugin_page ) ) { + wp_die( __( 'Invalid plugin page.' ) ); + } if ( !( file_exists(WP_PLUGIN_DIR . "/$plugin_page") && is_file(WP_PLUGIN_DIR . "/$plugin_page") ) && !( file_exists(WPMU_PLUGIN_DIR . "/$plugin_page") && is_file(WPMU_PLUGIN_DIR . "/$plugin_page") ) ) wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));