|
@@ 951-958 (lines=8) @@
|
| 948 |
|
// Also make sure that the service-specific input isn't there. |
| 949 |
|
// If the user connected to a new service 'in-page' then a hidden field with the service |
| 950 |
|
// name is added, so we just assume they wanted to Publicize to that service. |
| 951 |
|
if ( empty( $_POST[$this->ADMIN_PAGE]['submit'][$service_name] ) ) { |
| 952 |
|
// Nothing seems to be checked, so we're going to mark this one to be skipped |
| 953 |
|
update_post_meta( $post_id, $this->POST_SKIP . $unique_id, 1 ); |
| 954 |
|
continue; |
| 955 |
|
} else { |
| 956 |
|
// clean up any stray post meta |
| 957 |
|
delete_post_meta( $post_id, $this->POST_SKIP . $unique_id ); |
| 958 |
|
} |
| 959 |
|
} else { |
| 960 |
|
// The checkbox for this connection is explicitly checked -- make sure we DON'T skip it |
| 961 |
|
delete_post_meta( $post_id, $this->POST_SKIP . $unique_id ); |
|
@@ 1192-1198 (lines=7) @@
|
| 1189 |
|
$unique_id = $connection['connection_data']['token_id']; |
| 1190 |
|
} |
| 1191 |
|
|
| 1192 |
|
if ( $this->connection_should_share( $publicize_field['connections'], $unique_id ) ) { |
| 1193 |
|
// Delete skip flag meta key. |
| 1194 |
|
delete_post_meta( $post->ID, $this->POST_SKIP . $unique_id ); |
| 1195 |
|
} else { |
| 1196 |
|
// Flag connection to be skipped for this post. |
| 1197 |
|
update_post_meta( $post->ID, $this->POST_SKIP . $unique_id, 1 ); |
| 1198 |
|
} |
| 1199 |
|
} |
| 1200 |
|
} |
| 1201 |
|
} |