@@ 449-450 (lines=2) @@ | ||
446 | $media = false; |
|
447 | if ( $args['from_thumbnail'] ) |
|
448 | $media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
|
449 | if ( !$media && $args['from_slideshow'] ) |
|
450 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
451 | if ( !$media && $args['from_gallery'] ) |
|
452 | $media = self::from_gallery( $post_id ); |
|
453 | if ( !$media && $args['from_attachment'] ) |
|
@@ 453-454 (lines=2) @@ | ||
450 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
451 | if ( !$media && $args['from_gallery'] ) |
|
452 | $media = self::from_gallery( $post_id ); |
|
453 | if ( !$media && $args['from_attachment'] ) |
|
454 | $media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
|
455 | if ( !$media && $args['from_html'] ) { |
|
456 | if ( empty( $args['html_content'] ) ) |
|
457 | $media = self::from_html( $post_id ); // Use the post_id, which will load the content |