diff --git a/wp-admin/options.php b/wp-admin/options.php
index 012164326c..2d7eddd632 100644
--- a/wp-admin/options.php
+++ b/wp-admin/options.php
@@ -200,7 +200,7 @@ if ( ! is_multisite() ) {
*
* @since 2.7.0
*
- * @param array $whitelist_options Whitelist options.
+ * @param array $whitelist_options The options whitelist.
*/
$whitelist_options = apply_filters( 'whitelist_options', $whitelist_options );
@@ -217,7 +217,13 @@ if ( 'update' == $action ) {
}
if ( ! isset( $whitelist_options[ $option_page ] ) ) {
- wp_die( __( 'Error: Options page not found.' ) );
+ wp_die(
+ sprintf(
+ /* translators: %s: The options page name. */
+ __( 'Error: Options page %s not found in the options whitelist.' ),
+ '' . esc_html( $option_page ) . '
'
+ )
+ );
}
if ( 'options' == $option_page ) {
@@ -268,7 +274,7 @@ if ( 'update' == $action ) {
sprintf(
/* translators: %s: The option/setting. */
__( 'The %s setting is unregistered. Unregistered settings are deprecated. See https://developer.wordpress.org/plugins/settings/settings-api/' ),
- '' . $option . '
'
+ '' . esc_html( $option ) . '
'
)
);
}
diff --git a/wp-includes/version.php b/wp-includes/version.php
index ed1bd8e5e8..e54001519e 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
-$wp_version = '5.4-alpha-47157';
+$wp_version = '5.4-alpha-47158';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.