|
@@ 975-982 (lines=8) @@
|
| 972 |
|
// Also make sure that the service-specific input isn't there. |
| 973 |
|
// If the user connected to a new service 'in-page' then a hidden field with the service |
| 974 |
|
// name is added, so we just assume they wanted to Publicize to that service. |
| 975 |
|
if ( empty( $_POST[$this->ADMIN_PAGE]['submit'][$service_name] ) ) { |
| 976 |
|
// Nothing seems to be checked, so we're going to mark this one to be skipped |
| 977 |
|
update_post_meta( $post_id, $this->POST_SKIP . $unique_id, 1 ); |
| 978 |
|
continue; |
| 979 |
|
} else { |
| 980 |
|
// clean up any stray post meta |
| 981 |
|
delete_post_meta( $post_id, $this->POST_SKIP . $unique_id ); |
| 982 |
|
} |
| 983 |
|
} else { |
| 984 |
|
// The checkbox for this connection is explicitly checked -- make sure we DON'T skip it |
| 985 |
|
delete_post_meta( $post_id, $this->POST_SKIP . $unique_id ); |
|
@@ 1216-1222 (lines=7) @@
|
| 1213 |
|
$unique_id = $connection['connection_data']['token_id']; |
| 1214 |
|
} |
| 1215 |
|
|
| 1216 |
|
if ( $this->connection_should_share( $publicize_field['connections'], $unique_id ) ) { |
| 1217 |
|
// Delete skip flag meta key. |
| 1218 |
|
delete_post_meta( $post->ID, $this->POST_SKIP . $unique_id ); |
| 1219 |
|
} else { |
| 1220 |
|
// Flag connection to be skipped for this post. |
| 1221 |
|
update_post_meta( $post->ID, $this->POST_SKIP . $unique_id, 1 ); |
| 1222 |
|
} |
| 1223 |
|
} |
| 1224 |
|
} |
| 1225 |
|
} |