From 449ffedfb94ebb98bfafd6210c853c5d42694631 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 6 Mar 2014 19:34:14 +0000 Subject: [PATCH] maybe_regenerate_attachment_metadata() is now wp_maybe_generate_attachment_metadata(). props kovshenin. fixes #26825. Built from https://develop.svn.wordpress.org/trunk@27441 git-svn-id: http://core.svn.wordpress.org/trunk@27288 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 57ed3595fa..0077056b06 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -2634,13 +2634,13 @@ function edit_form_image_editor( $post ) { post_mime_type, 'audio/' ) ): - maybe_regenerate_attachment_metadata( $post ); + wp_maybe_generate_attachment_metadata( $post ); echo wp_audio_shortcode( array( 'src' => $att_url ) ); elseif ( $attachment_id && 0 === strpos( $post->post_mime_type, 'video/' ) ): - maybe_regenerate_attachment_metadata( $post ); + wp_maybe_generate_attachment_metadata( $post ); $meta = wp_get_attachment_metadata( $attachment_id ); $w = ! empty( $meta['width'] ) ? min( $meta['width'], 640 ) : 0;