From 35ca5f61f87cc646163f0e7726ca3ecf1093d061 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Thu, 28 Jun 2018 02:37:51 +0000 Subject: [PATCH] Options, Meta APIs: Use the correct escaping function when outputting the meta box context. Props khaihong, abdullahramzan, leanderiversen, aryamaaru, lbenicio, palmiak Fixes #44274 Built from https://develop.svn.wordpress.org/trunk@43365 git-svn-id: http://core.svn.wordpress.org/trunk@43193 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index b89a899d55..57dd7c2fcd 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -1099,7 +1099,7 @@ function do_meta_boxes( $screen, $context, $object ) { $hidden = get_hidden_meta_boxes( $screen ); - printf( '
', htmlspecialchars( $context ) ); + printf( '
', esc_attr( $context ) ); // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose if ( ! $already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 23fdaea916..f25b3f5731 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43363'; +$wp_version = '5.0-alpha-43365'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.