@@ 929-933 (lines=5) @@ | ||
926 | isset( $_POST[$this->ADMIN_PAGE] ); |
|
927 | ||
928 | if ( ( $from_web || defined( 'POST_BY_EMAIL' ) ) && isset( $_POST['wpas_title'] ) ) { |
|
929 | if ( empty( $_POST['wpas_title'] ) ) { |
|
930 | delete_post_meta( $post_id, $this->POST_MESS ); |
|
931 | } else { |
|
932 | update_post_meta( $post_id, $this->POST_MESS, trim( stripslashes( $_POST['wpas_title'] ) ) ); |
|
933 | } |
|
934 | } |
|
935 | ||
936 | // change current user to provide context for get_services() if we're running during cron |
|
@@ 1202-1206 (lines=5) @@ | ||
1199 | ||
1200 | $publicize_field = $request['publicize']; |
|
1201 | ||
1202 | if ( empty( $publicize_field['title'] ) ) { |
|
1203 | delete_post_meta( $post->ID, $this->POST_MESS ); |
|
1204 | } else { |
|
1205 | update_post_meta( $post->ID, $this->POST_MESS, trim( stripslashes( $publicize_field['title'] ) ) ); |
|
1206 | } |
|
1207 | if ( isset( $publicize_field['connections'] ) ) { |
|
1208 | foreach ( (array) $this->get_services( 'connected' ) as $service_name => $connections ) { |
|
1209 | foreach ( $connections as $connection ) { |