Don't use deprecated functions.
git-svn-id: https://develop.svn.wordpress.org/trunk@13601 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0da34463e7
commit
2265baca72
@ -87,7 +87,7 @@ foreach ($posts_columns as $column_name => $column_display_name ) {
|
|||||||
<td <?php echo $attributes ?>><strong><?php if ( $is_trash ) echo $att_title; else { ?><a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a><?php } ?></strong><br />
|
<td <?php echo $attributes ?>><strong><?php if ( $is_trash ) echo $att_title; else { ?><a href="<?php echo get_edit_post_link( $post->ID, true ); ?>" title="<?php echo esc_attr(sprintf(__('Edit “%s”'), $att_title)); ?>"><?php echo $att_title; ?></a><?php } ?></strong><br />
|
||||||
<?php
|
<?php
|
||||||
if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
|
if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
|
||||||
echo wp_specialchars( strtoupper( $matches[1] ) );
|
echo esc_html( strtoupper( $matches[1] ) );
|
||||||
else
|
else
|
||||||
echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
|
echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
|
||||||
?>
|
?>
|
||||||
|
@ -394,7 +394,7 @@ if ( isset($_GET['detached']) ) { ?>
|
|||||||
<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 />
|
<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 />
|
||||||
<?php
|
<?php
|
||||||
if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
|
if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) )
|
||||||
echo wp_specialchars( strtoupper( $matches[1] ) );
|
echo esc_html( strtoupper( $matches[1] ) );
|
||||||
else
|
else
|
||||||
echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
|
echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) );
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user