@@ 559-560 (lines=2) @@ | ||
556 | $media = false; |
|
557 | if ( $args['from_thumbnail'] ) |
|
558 | $media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
|
559 | if ( !$media && $args['from_slideshow'] ) |
|
560 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
561 | if ( !$media && $args['from_gallery'] ) |
|
562 | $media = self::from_gallery( $post_id ); |
|
563 | if ( !$media && $args['from_attachment'] ) |
|
@@ 563-564 (lines=2) @@ | ||
560 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
561 | if ( !$media && $args['from_gallery'] ) |
|
562 | $media = self::from_gallery( $post_id ); |
|
563 | if ( !$media && $args['from_attachment'] ) |
|
564 | $media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
|
565 | if ( !$media && $args['from_html'] ) { |
|
566 | if ( empty( $args['html_content'] ) ) |
|
567 | $media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content |