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