Make WordPress Core

Ticket #44274: 44274

File 44274, 740 bytes (added by abdullahramzan, 8 years ago)
Line 
1diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
2index b89a899..6b53094 100644
3--- a/wp-admin/includes/template.php
4+++ b/wp-admin/includes/template.php
5@@ -1099,7 +1099,7 @@ function do_meta_boxes( $screen, $context, $object ) {
6 
7        $hidden = get_hidden_meta_boxes( $screen );
8 
9-       printf( '<div id="%s-sortables" class="meta-box-sortables">', htmlspecialchars( $context ) );
10+       printf( '<div id="%s-sortables" class="meta-box-sortables">', esc_attr( $context, $flags=NULL, $encoding='UTF-8' ) );
11 
12        // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose
13        if ( ! $already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) {