@@ 517-518 (lines=2) @@ | ||
514 | $media = false; |
|
515 | if ( $args['from_thumbnail'] ) |
|
516 | $media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
|
517 | if ( !$media && $args['from_slideshow'] ) |
|
518 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
519 | if ( !$media && $args['from_gallery'] ) |
|
520 | $media = self::from_gallery( $post_id ); |
|
521 | if ( !$media && $args['from_attachment'] ) |
|
@@ 521-522 (lines=2) @@ | ||
518 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
519 | if ( !$media && $args['from_gallery'] ) |
|
520 | $media = self::from_gallery( $post_id ); |
|
521 | if ( !$media && $args['from_attachment'] ) |
|
522 | $media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
|
523 | if ( !$media && $args['from_html'] ) { |
|
524 | if ( empty( $args['html_content'] ) ) |
|
525 | $media = self::from_html( $post_id ); // Use the post_id, which will load the content |