WordPress.org

Make WordPress Core

Ticket #5911: 5911-5.diff

File 5911-5.diff, 639 bytes (added by andy, 6 years ago)

get filename from function instead of guid. fixes h-scroll caused by bad guid.

  • wp-admin/edit-attachment-rows.php

     
    4747        case 'media': 
    4848                ?> 
    4949                <td><strong><a href="# TODO: upload.php?action=edit&amp;post=<?php the_ID(); ?>"><?php the_title(); ?></a></strong><br /> 
    50                 <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', $post->guid)); ?> 
     50                <?php echo strtoupper(preg_replace('/^.*?\.(\w+)$/', '$1', get_attached_file($post->ID))); ?> 
    5151                <?php do_action('manage_media_media_column', $post->ID); ?> 
    5252                </td> 
    5353                <?php