@@ 506-507 (lines=2) @@ | ||
503 | $media = false; |
|
504 | if ( $args['from_thumbnail'] ) |
|
505 | $media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
|
506 | if ( !$media && $args['from_slideshow'] ) |
|
507 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
508 | if ( !$media && $args['from_gallery'] ) |
|
509 | $media = self::from_gallery( $post_id ); |
|
510 | if ( !$media && $args['from_attachment'] ) |
|
@@ 510-511 (lines=2) @@ | ||
507 | $media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
|
508 | if ( !$media && $args['from_gallery'] ) |
|
509 | $media = self::from_gallery( $post_id ); |
|
510 | if ( !$media && $args['from_attachment'] ) |
|
511 | $media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
|
512 | if ( !$media && $args['from_html'] ) { |
|
513 | if ( empty( $args['html_content'] ) ) |
|
514 | $media = self::from_html( $post_id ); // Use the post_id, which will load the content |