diff --git a/wp-admin/admin.php b/wp-admin/admin.php index 2dd315daf9..88a4aa480d 100644 --- a/wp-admin/admin.php +++ b/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))); diff --git a/wp-includes/version.php b/wp-includes/version.php index 1d77cec4d9..eb5a4d071c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39940'; +$wp_version = '4.8-alpha-39941'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.