|
@@ 855-859 (lines=5) @@
|
| 852 |
|
isset( $_POST[$this->ADMIN_PAGE] ); |
| 853 |
|
|
| 854 |
|
if ( ( $from_web || defined( 'POST_BY_EMAIL' ) ) && isset( $_POST['wpas_title'] ) ) { |
| 855 |
|
if ( empty( $_POST['wpas_title'] ) ) { |
| 856 |
|
delete_post_meta( $post_id, $this->POST_MESS ); |
| 857 |
|
} else { |
| 858 |
|
update_post_meta( $post_id, $this->POST_MESS, trim( stripslashes( $_POST['wpas_title'] ) ) ); |
| 859 |
|
} |
| 860 |
|
} |
| 861 |
|
|
| 862 |
|
// change current user to provide context for get_services() if we're running during cron |
|
@@ 1231-1235 (lines=5) @@
|
| 1228 |
|
|
| 1229 |
|
$publicize_field = $request['publicize']; |
| 1230 |
|
|
| 1231 |
|
if ( empty( $publicize_field['title'] ) ) { |
| 1232 |
|
delete_post_meta( $post->ID, $this->POST_MESS ); |
| 1233 |
|
} else { |
| 1234 |
|
update_post_meta( $post->ID, $this->POST_MESS, trim( stripslashes( $publicize_field['title'] ) ) ); |
| 1235 |
|
} |
| 1236 |
|
if ( isset( $publicize_field['connections'] ) ) { |
| 1237 |
|
foreach ( (array) $this->get_services( 'connected' ) as $service_name => $connections ) { |
| 1238 |
|
foreach ( $connections as $connection ) { |