|
@@ 467-468 (lines=2) @@
|
| 464 |
|
$media = false; |
| 465 |
|
if ( $args['from_thumbnail'] ) |
| 466 |
|
$media = self::from_thumbnail( $post_id, $args['width'], $args['height'] ); |
| 467 |
|
if ( !$media && $args['from_slideshow'] ) |
| 468 |
|
$media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
| 469 |
|
if ( !$media && $args['from_gallery'] ) |
| 470 |
|
$media = self::from_gallery( $post_id ); |
| 471 |
|
if ( !$media && $args['from_attachment'] ) |
|
@@ 471-472 (lines=2) @@
|
| 468 |
|
$media = self::from_slideshow( $post_id, $args['width'], $args['height'] ); |
| 469 |
|
if ( !$media && $args['from_gallery'] ) |
| 470 |
|
$media = self::from_gallery( $post_id ); |
| 471 |
|
if ( !$media && $args['from_attachment'] ) |
| 472 |
|
$media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
| 473 |
|
if ( !$media && $args['from_html'] ) { |
| 474 |
|
if ( empty( $args['html_content'] ) ) |
| 475 |
|
$media = self::from_html( $post_id ); // Use the post_id, which will load the content |