|
@@ 609-614 (lines=6) @@
|
| 606 |
|
$media = self::from_gallery( $post_id ); |
| 607 |
|
if ( !$media && $args['from_attachment'] ) |
| 608 |
|
$media = self::from_attachment( $post_id, $args['width'], $args['height'] ); |
| 609 |
|
if ( ! $media && $args['from_blocks'] ) { |
| 610 |
|
if ( empty( $args['html_content'] ) ) |
| 611 |
|
$media = self::from_blocks( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content |
| 612 |
|
else |
| 613 |
|
$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that |
| 614 |
|
} |
| 615 |
|
if ( !$media && $args['from_html'] ) { |
| 616 |
|
if ( empty( $args['html_content'] ) ) |
| 617 |
|
$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content |
|
@@ 615-620 (lines=6) @@
|
| 612 |
|
else |
| 613 |
|
$media = self::from_blocks( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that |
| 614 |
|
} |
| 615 |
|
if ( !$media && $args['from_html'] ) { |
| 616 |
|
if ( empty( $args['html_content'] ) ) |
| 617 |
|
$media = self::from_html( $post_id, $args['width'], $args['height'] ); // Use the post_id, which will load the content |
| 618 |
|
else |
| 619 |
|
$media = self::from_html( $args['html_content'], $args['width'], $args['height'] ); // If html_content is provided, use that |
| 620 |
|
} |
| 621 |
|
|
| 622 |
|
if ( !$media && $args['fallback_to_avatars'] ) { |
| 623 |
|
$media = self::from_blavatar( $post_id, $args['avatar_size'] ); |