Make WordPress Core

Changeset 43365


Ignore:
Timestamp:
06/16/2018 01:49:23 PM (6 years ago)
Author:
johnbillion
Message:

Options, Meta APIs: Use the correct escaping function when outputting the meta box context.

Props khaihong, abdullahramzan, leanderiversen, aryamaaru, lbenicio, palmiak

Fixes #44274

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r43006 r43365  
    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 ) );
    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
Note: See TracChangeset for help on using the changeset viewer.