@@ 486-487 (lines=2) @@ | ||
483 | $media = false; |
|
484 | if ( $args['from_thumbnail'] ) |
|
485 | $media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
|
486 | if ( !$media && $args['from_slideshow'] ) |
|
487 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
488 | if ( !$media && $args['from_gallery'] ) |
|
489 | $media = self::from_gallery( $post_id ); |
|
490 | if ( !$media && $args['from_attachment'] ) |
|
@@ 490-491 (lines=2) @@ | ||
487 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
488 | if ( !$media && $args['from_gallery'] ) |
|
489 | $media = self::from_gallery( $post_id ); |
|
490 | if ( !$media && $args['from_attachment'] ) |
|
491 | $media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
|
492 | if ( !$media && $args['from_html'] ) { |
|
493 | if ( empty( $args['html_content'] ) ) |
|
494 | $media = self::from_html( $post_id ); // Use the post_id, which will load the content |