WordPress.org

Make WordPress Core

Ticket #24003: 24003.2.diff

File 24003.2.diff, 427 bytes (added by kovshenin, 5 years ago)
  • wp-includes/media.php

     
    23762376                return $post->format_content;
    23772377        }
    23782378
    2379         $medias = get_attached_images();
     2379        $medias = get_attached_images( $post->ID );
    23802380        if ( ! empty( $medias ) ) {
    23812381                $media = reset( $medias );
    23822382                $sizes = get_intermediate_image_sizes();