json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 692-698 (lines=7) @@
|
| 689 |
|
} |
| 690 |
|
} |
| 691 |
|
|
| 692 |
|
if ( ! is_null( $publicize_custom_message ) ) { |
| 693 |
|
if ( empty( $publicize_custom_message ) ) { |
| 694 |
|
delete_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS ); |
| 695 |
|
} else { |
| 696 |
|
update_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS, trim( $publicize_custom_message ) ); |
| 697 |
|
} |
| 698 |
|
} |
| 699 |
|
|
| 700 |
|
if ( ! empty( $insert['post_format'] ) ) { |
| 701 |
|
if ( 'default' !== strtolower( $insert['post_format'] ) ) { |
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 766-772 (lines=7) @@
|
| 763 |
|
} |
| 764 |
|
} |
| 765 |
|
|
| 766 |
|
if ( ! is_null( $publicize_custom_message ) ) { |
| 767 |
|
if ( empty( $publicize_custom_message ) ) { |
| 768 |
|
delete_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS ); |
| 769 |
|
} else { |
| 770 |
|
update_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS, trim( $publicize_custom_message ) ); |
| 771 |
|
} |
| 772 |
|
} |
| 773 |
|
|
| 774 |
|
if ( ! empty( $insert['post_format'] ) ) { |
| 775 |
|
if ( 'default' !== strtolower( $insert['post_format'] ) ) { |
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 737-743 (lines=7) @@
|
| 734 |
|
} |
| 735 |
|
} |
| 736 |
|
|
| 737 |
|
if ( ! is_null( $publicize_custom_message ) ) { |
| 738 |
|
if ( empty( $publicize_custom_message ) ) { |
| 739 |
|
delete_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS ); |
| 740 |
|
} else { |
| 741 |
|
update_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS, trim( $publicize_custom_message ) ); |
| 742 |
|
} |
| 743 |
|
} |
| 744 |
|
|
| 745 |
|
if ( ! empty( $insert['post_format'] ) ) { |
| 746 |
|
if ( 'default' !== strtolower( $insert['post_format'] ) ) { |