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