Make WordPress Core

Ticket #44274: template.diff

File template.diff, 758 bytes (added by aryamaaru, 5 years ago)
  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index b89a899..cebf7d7 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=ENT_QUOTES, $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" ) ) {