WordPress.org

Make WordPress Core

Changeset 13601


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

Don't use deprecated functions.

Location:
trunk/wp-admin
Files:
2 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() ) );
  • 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.