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/edit-attachment-rows.php

    r13541 r13601  
    8888        <?php
    8989        if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
    90             echo wp_specialchars( strtoupper( $matches[1] ) );
     90            echo esc_html( strtoupper( $matches[1] ) );
    9191        else
    9292            echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
Note: See TracChangeset for help on using the changeset viewer.