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