Make WordPress Core


Ignore:
Timestamp:
03/06/2010 08:02:26 AM (16 years ago)
Author:
nacin
Message:

Don't use deprecated functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/upload.php

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