|
@@ 580-581 (lines=2) @@
|
| 577 |
|
$media = false; |
| 578 |
|
if ( $args['from_thumbnail'] ) |
| 579 |
|
$media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
| 580 |
|
if ( !$media && $args['from_slideshow'] ) |
| 581 |
|
$media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
| 582 |
|
if ( !$media && $args['from_gallery'] ) |
| 583 |
|
$media = self::from_gallery( $post_id ); |
| 584 |
|
if ( !$media && $args['from_attachment'] ) |
|
@@ 584-585 (lines=2) @@
|
| 581 |
|
$media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
| 582 |
|
if ( !$media && $args['from_gallery'] ) |
| 583 |
|
$media = self::from_gallery( $post_id ); |
| 584 |
|
if ( !$media && $args['from_attachment'] ) |
| 585 |
|
$media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
| 586 |
|
if ( !$media && $args['from_html'] ) { |
| 587 |
|
if ( empty( $args['html_content'] ) ) |
| 588 |
|
$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content |