json-endpoints/class.wpcom-json-api-update-post-endpoint.php 1 location
|
@@ 503-509 (lines=7) @@
|
| 500 |
|
} |
| 501 |
|
} |
| 502 |
|
|
| 503 |
|
if ( ! is_null( $publicize_custom_message ) ) { |
| 504 |
|
if ( empty( $publicize_custom_message ) ) { |
| 505 |
|
delete_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS ); |
| 506 |
|
} else { |
| 507 |
|
update_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS, trim( $publicize_custom_message ) ); |
| 508 |
|
} |
| 509 |
|
} |
| 510 |
|
|
| 511 |
|
if ( ! empty( $insert['post_format'] ) ) { |
| 512 |
|
if ( 'default' !== strtolower( $insert['post_format'] ) ) { |
json-endpoints/class.wpcom-json-api-update-post-v1-1-endpoint.php 1 location
|
@@ 571-577 (lines=7) @@
|
| 568 |
|
} |
| 569 |
|
} |
| 570 |
|
|
| 571 |
|
if ( ! is_null( $publicize_custom_message ) ) { |
| 572 |
|
if ( empty( $publicize_custom_message ) ) { |
| 573 |
|
delete_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS ); |
| 574 |
|
} else { |
| 575 |
|
update_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS, trim( $publicize_custom_message ) ); |
| 576 |
|
} |
| 577 |
|
} |
| 578 |
|
|
| 579 |
|
if ( ! empty( $insert['post_format'] ) ) { |
| 580 |
|
if ( 'default' !== strtolower( $insert['post_format'] ) ) { |
json-endpoints/class.wpcom-json-api-update-post-v1-2-endpoint.php 1 location
|
@@ 572-578 (lines=7) @@
|
| 569 |
|
} |
| 570 |
|
} |
| 571 |
|
|
| 572 |
|
if ( ! is_null( $publicize_custom_message ) ) { |
| 573 |
|
if ( empty( $publicize_custom_message ) ) { |
| 574 |
|
delete_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS ); |
| 575 |
|
} else { |
| 576 |
|
update_post_meta( $post_id, $GLOBALS['publicize_ui']->publicize->POST_MESS, trim( $publicize_custom_message ) ); |
| 577 |
|
} |
| 578 |
|
} |
| 579 |
|
|
| 580 |
|
if ( ! empty( $insert['post_format'] ) ) { |
| 581 |
|
if ( 'default' !== strtolower( $insert['post_format'] ) ) { |