@@ 624-625 (lines=2) @@ | ||
621 | $media = false; |
|
622 | if ( $args['from_thumbnail'] ) |
|
623 | $media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
|
624 | if ( !$media && $args['from_slideshow'] ) |
|
625 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
626 | if ( !$media && $args['from_gallery'] ) |
|
627 | $media = self::from_gallery( $post_id ); |
|
628 | if ( !$media && $args['from_attachment'] ) |
|
@@ 628-629 (lines=2) @@ | ||
625 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
626 | if ( !$media && $args['from_gallery'] ) |
|
627 | $media = self::from_gallery( $post_id ); |
|
628 | if ( !$media && $args['from_attachment'] ) |
|
629 | $media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
|
630 | if ( ! $media && $args['from_blocks'] ) { |
|
631 | if ( empty( $args['html_content'] ) ) |
|
632 | $media = self::from_blocks( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content |