Use get_attached_file() in attachment_submitbox_metadata().

Props kitchin.
Fixes #33386.

Built from https://develop.svn.wordpress.org/trunk@34171


git-svn-id: http://core.svn.wordpress.org/trunk@34139 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-15 04:18:25 +00:00
parent 54829b6305
commit ab6d1fa247
2 changed files with 3 additions and 3 deletions

View File

@ -2787,7 +2787,8 @@ function edit_form_image_editor( $post ) {
function attachment_submitbox_metadata() {
$post = get_post();
$filename = esc_html( wp_basename( $post->guid ) );
$file = get_attached_file( $post->ID );
$filename = esc_html( wp_basename( $file ) );
$media_dims = '';
$meta = wp_get_attachment_metadata( $post->ID );
@ -2822,7 +2823,6 @@ function attachment_submitbox_metadata() {
</div>
<?php
$file = get_attached_file( $post->ID );
$file_size = false;
if ( isset( $meta['filesize'] ) )

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34170';
$wp_version = '4.4-alpha-34171';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.