WordPress.org

Make WordPress Core

Ticket #12490: wp_specialchars_to_esc_html.diff

File wp_specialchars_to_esc_html.diff, 706 bytes (added by ptahdunbar, 5 years ago)
  • wp-admin/upload.php

     
    394394                <td class="media column-media"><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo esc_attr(sprintf(__('Edit &#8220;%s&#8221;'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br /> 
    395395                <?php 
    396396                if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) ) 
    397                         echo wp_specialchars( strtoupper( $matches[1] ) ); 
     397                        echo esc_html( strtoupper( $matches[1] ) ); 
    398398                else 
    399399                        echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );   
    400400                ?>