json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 700-707 (lines=8) @@
|
| 697 |
|
} |
| 698 |
|
} |
| 699 |
|
|
| 700 |
|
if ( ! empty( $insert['post_format'] ) ) { |
| 701 |
|
if ( 'default' !== strtolower( $insert['post_format'] ) ) { |
| 702 |
|
set_post_format( $post_id, $insert['post_format'] ); |
| 703 |
|
} |
| 704 |
|
else { |
| 705 |
|
set_post_format( $post_id, get_option( 'default_post_format' ) ); |
| 706 |
|
} |
| 707 |
|
} |
| 708 |
|
|
| 709 |
|
if ( isset( $featured_image ) ) { |
| 710 |
|
$this->parse_and_set_featured_image( $post_id, $delete_featured_image, $featured_image ); |
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 774-781 (lines=8) @@
|
| 771 |
|
} |
| 772 |
|
} |
| 773 |
|
|
| 774 |
|
if ( ! empty( $insert['post_format'] ) ) { |
| 775 |
|
if ( 'default' !== strtolower( $insert['post_format'] ) ) { |
| 776 |
|
set_post_format( $post_id, $insert['post_format'] ); |
| 777 |
|
} |
| 778 |
|
else { |
| 779 |
|
set_post_format( $post_id, get_option( 'default_post_format' ) ); |
| 780 |
|
} |
| 781 |
|
} |
| 782 |
|
|
| 783 |
|
if ( isset( $featured_image ) ) { |
| 784 |
|
$this->parse_and_set_featured_image( $post_id, $delete_featured_image, $featured_image ); |
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 745-752 (lines=8) @@
|
| 742 |
|
} |
| 743 |
|
} |
| 744 |
|
|
| 745 |
|
if ( ! empty( $insert['post_format'] ) ) { |
| 746 |
|
if ( 'default' !== strtolower( $insert['post_format'] ) ) { |
| 747 |
|
set_post_format( $post_id, $insert['post_format'] ); |
| 748 |
|
} |
| 749 |
|
else { |
| 750 |
|
set_post_format( $post_id, get_option( 'default_post_format' ) ); |
| 751 |
|
} |
| 752 |
|
} |
| 753 |
|
|
| 754 |
|
if ( isset( $featured_image ) ) { |
| 755 |
|
parent::parse_and_set_featured_image( $post_id, $delete_featured_image, $featured_image ); |