WordPress.org

Make WordPress Core

Ticket #26825: 26825.4.diff

File 26825.4.diff, 798 bytes (added by kovshenin, 6 years ago)
  • src/wp-admin/includes/media.php

     
    26342634        <?php
    26352635        elseif ( $attachment_id && 0 === strpos( $post->post_mime_type, 'audio/' ) ):
    26362636
    2637                 maybe_regenerate_attachment_metadata( $post );
     2637                wp_maybe_generate_attachment_metadata( $post );
    26382638
    26392639                echo wp_audio_shortcode( array( 'src' => $att_url ) );
    26402640
    26412641        elseif ( $attachment_id && 0 === strpos( $post->post_mime_type, 'video/' ) ):
    26422642
    2643                 maybe_regenerate_attachment_metadata( $post );
     2643                wp_maybe_generate_attachment_metadata( $post );
    26442644
    26452645                $meta = wp_get_attachment_metadata( $attachment_id );
    26462646                $w = ! empty( $meta['width'] ) ? min( $meta['width'], 640 ) : 0;