Make WordPress Core

Ticket #44274: 44274.1.diff

File 44274.1.diff, 740 bytes (added by abdullahramzan, 7 years ago)

Please consider this one.

  • wp-admin/includes/template.php

    diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
    index b89a899..6b53094 100644
    a b function do_meta_boxes( $screen, $context, $object ) { 
    10991099
    11001100        $hidden = get_hidden_meta_boxes( $screen );
    11011101
    1102         printf( '<div id="%s-sortables" class="meta-box-sortables">', htmlspecialchars( $context ) );
     1102        printf( '<div id="%s-sortables" class="meta-box-sortables">', esc_attr( $context, $flags=NULL, $encoding='UTF-8' ) );
    11031103
    11041104        // Grab the ones the user has manually sorted. Pull them out of their previous context/priority and into the one the user chose
    11051105        if ( ! $already_sorted && $sorted = get_user_option( "meta-box-order_$page" ) ) {