From 2265baca7290ec449cf48fae49e7c20733b5d4bd Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 6 Mar 2010 08:02:26 +0000 Subject: [PATCH] Don't use deprecated functions. git-svn-id: https://develop.svn.wordpress.org/trunk@13601 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/edit-attachment-rows.php | 2 +- wp-admin/upload.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/edit-attachment-rows.php b/wp-admin/edit-attachment-rows.php index 21b66c63ad..e683a663a4 100644 --- a/wp-admin/edit-attachment-rows.php +++ b/wp-admin/edit-attachment-rows.php @@ -87,7 +87,7 @@ foreach ($posts_columns as $column_name => $column_display_name ) { >
ID ), $matches ) ) - echo wp_specialchars( strtoupper( $matches[1] ) ); + echo esc_html( strtoupper( $matches[1] ) ); else echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) ); ?> diff --git a/wp-admin/upload.php b/wp-admin/upload.php index ab3bacf5dd..53cbca93e8 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -394,7 +394,7 @@ if ( isset($_GET['detached']) ) { ?>
ID ), $matches ) ) - echo wp_specialchars( strtoupper( $matches[1] ) ); + echo esc_html( strtoupper( $matches[1] ) ); else echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) ); ?>