|
@@ 927-934 (lines=8) @@
|
| 924 |
|
// Also make sure that the service-specific input isn't there. |
| 925 |
|
// If the user connected to a new service 'in-page' then a hidden field with the service |
| 926 |
|
// name is added, so we just assume they wanted to Publicize to that service. |
| 927 |
|
if ( empty( $_POST[$this->ADMIN_PAGE]['submit'][$service_name] ) ) { |
| 928 |
|
// Nothing seems to be checked, so we're going to mark this one to be skipped |
| 929 |
|
update_post_meta( $post_id, $this->POST_SKIP . $unique_id, 1 ); |
| 930 |
|
continue; |
| 931 |
|
} else { |
| 932 |
|
// clean up any stray post meta |
| 933 |
|
delete_post_meta( $post_id, $this->POST_SKIP . $unique_id ); |
| 934 |
|
} |
| 935 |
|
} else { |
| 936 |
|
// The checkbox for this connection is explicitly checked -- make sure we DON'T skip it |
| 937 |
|
delete_post_meta( $post_id, $this->POST_SKIP . $unique_id ); |
|
@@ 1168-1174 (lines=7) @@
|
| 1165 |
|
$unique_id = $connection['connection_data']['token_id']; |
| 1166 |
|
} |
| 1167 |
|
|
| 1168 |
|
if ( $this->connection_should_share( $publicize_field['connections'], $unique_id ) ) { |
| 1169 |
|
// Delete skip flag meta key. |
| 1170 |
|
delete_post_meta( $post->ID, $this->POST_SKIP . $unique_id ); |
| 1171 |
|
} else { |
| 1172 |
|
// Flag connection to be skipped for this post. |
| 1173 |
|
update_post_meta( $post->ID, $this->POST_SKIP . $unique_id, 1 ); |
| 1174 |
|
} |
| 1175 |
|
} |
| 1176 |
|
} |
| 1177 |
|
} |