maybe_regenerate_attachment_metadata() is now wp_maybe_generate_attachment_metadata().
props kovshenin. fixes #26825. git-svn-id: https://develop.svn.wordpress.org/trunk@27441 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
e1773d3a18
commit
4bbd5ef1d6
@ -2634,13 +2634,13 @@ function edit_form_image_editor( $post ) {
|
||||
<?php
|
||||
elseif ( $attachment_id && 0 === strpos( $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;
|
||||
|
Loading…
Reference in New Issue
Block a user