Ticket #12490: wp_specialchars_to_esc_html.diff
File wp_specialchars_to_esc_html.diff, 706 bytes (added by , 15 years ago) |
---|
-
wp-admin/upload.php
394 394 <td class="media column-media"><strong><a href="<?php echo get_edit_post_link( $post->ID ); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a></strong><br /> 395 395 <?php 396 396 if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) ) 397 echo wp_specialchars( strtoupper( $matches[1] ) );397 echo esc_html( strtoupper( $matches[1] ) ); 398 398 else 399 399 echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) ); 400 400 ?>