Changeset 13541
- Timestamp:
- 03/01/2010 10:45:11 PM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-attachment-rows.php
r13230 r13541 86 86 ?> 87 87 <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 /> 88 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 88 <?php 89 if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) ) 90 echo wp_specialchars( strtoupper( $matches[1] ) ); 91 else 92 echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) ); 93 ?> 89 94 <p> 90 95 <?php -
trunk/wp-admin/upload.php
r13192 r13541 393 393 394 394 <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 /> 395 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 395 <?php 396 if ( preg_match( '/^.*?\.(\w+)$/', get_attached_file( $post->ID ), $matches ) ) 397 echo wp_specialchars( strtoupper( $matches[1] ) ); 398 else 399 echo strtoupper( str_replace( 'image/', '', get_post_mime_type() ) ); 400 ?> 396 401 397 402 <div class="row-actions">
Note: See TracChangeset
for help on using the changeset viewer.