|
@@ 905-909 (lines=5) @@
|
| 902 |
|
isset( $_POST[$this->ADMIN_PAGE] ); |
| 903 |
|
|
| 904 |
|
if ( ( $from_web || defined( 'POST_BY_EMAIL' ) ) && isset( $_POST['wpas_title'] ) ) { |
| 905 |
|
if ( empty( $_POST['wpas_title'] ) ) { |
| 906 |
|
delete_post_meta( $post_id, $this->POST_MESS ); |
| 907 |
|
} else { |
| 908 |
|
update_post_meta( $post_id, $this->POST_MESS, trim( stripslashes( $_POST['wpas_title'] ) ) ); |
| 909 |
|
} |
| 910 |
|
} |
| 911 |
|
|
| 912 |
|
// change current user to provide context for get_services() if we're running during cron |
|
@@ 1178-1182 (lines=5) @@
|
| 1175 |
|
|
| 1176 |
|
$publicize_field = $request['publicize']; |
| 1177 |
|
|
| 1178 |
|
if ( empty( $publicize_field['title'] ) ) { |
| 1179 |
|
delete_post_meta( $post->ID, $this->POST_MESS ); |
| 1180 |
|
} else { |
| 1181 |
|
update_post_meta( $post->ID, $this->POST_MESS, trim( stripslashes( $publicize_field['title'] ) ) ); |
| 1182 |
|
} |
| 1183 |
|
if ( isset( $publicize_field['connections'] ) ) { |
| 1184 |
|
foreach ( (array) $this->get_services( 'connected' ) as $service_name => $connections ) { |
| 1185 |
|
foreach ( $connections as $connection ) { |