From e42ce4a603e32d3284ea5d7b3e17501bab5f713a Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sat, 16 Jun 2018 13:49:23 +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 git-svn-id: https://develop.svn.wordpress.org/trunk@43365 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index b89a899d55..57dd7c2fcd 100644 --- a/src/wp-admin/includes/template.php +++ b/src/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" ) ) {