WordPress.org

Make WordPress Core

Changeset 34171


Ignore:
Timestamp:
09/15/2015 04:17:38 AM (4 years ago)
Author:
wonderboymusic
Message:

Use get_attached_file() in attachment_submitbox_metadata().

Props kitchin.
Fixes #33386.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/media.php

    r34163 r34171  
    27882788    $post = get_post();
    27892789
    2790     $filename = esc_html( wp_basename( $post->guid ) );
     2790    $file = get_attached_file( $post->ID );
     2791    $filename = esc_html( wp_basename( $file ) );
    27912792
    27922793    $media_dims = '';
     
    28232824
    28242825    <?php
    2825         $file  = get_attached_file( $post->ID );
    28262826        $file_size = false;
    28272827
Note: See TracChangeset for help on using the changeset viewer.