@@ 438-439 (lines=2) @@ | ||
435 | $media = false; |
|
436 | if ( $args['from_thumbnail'] ) |
|
437 | $media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
|
438 | if ( !$media && $args['from_slideshow'] ) |
|
439 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
440 | if ( !$media && $args['from_gallery'] ) |
|
441 | $media = self::from_gallery( $post_id ); |
|
442 | if ( !$media && $args['from_attachment'] ) |
|
@@ 442-443 (lines=2) @@ | ||
439 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
440 | if ( !$media && $args['from_gallery'] ) |
|
441 | $media = self::from_gallery( $post_id ); |
|
442 | if ( !$media && $args['from_attachment'] ) |
|
443 | $media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
|
444 | if ( !$media && $args['from_html'] ) { |
|
445 | if ( empty( $args['html_content'] ) ) |
|
446 | $media = self::from_html( $post_id ); // Use the post_id, which will load the content |