@@ 603-604 (lines=2) @@ | ||
600 | $media = false; |
|
601 | if ( $args['from_thumbnail'] ) |
|
602 | $media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
|
603 | if ( !$media && $args['from_slideshow'] ) |
|
604 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
605 | if ( !$media && $args['from_gallery'] ) |
|
606 | $media = self::from_gallery( $post_id ); |
|
607 | if ( !$media && $args['from_attachment'] ) |
|
@@ 607-608 (lines=2) @@ | ||
604 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
605 | if ( !$media && $args['from_gallery'] ) |
|
606 | $media = self::from_gallery( $post_id ); |
|
607 | if ( !$media && $args['from_attachment'] ) |
|
608 | $media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
|
609 | if ( ! $media && $args['from_blocks'] ) { |
|
610 | if ( empty( $args['html_content'] ) ) |
|
611 | $media = self::from_blocks( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content |