modules/likes/jetpack-likes-settings.php 1 location
|
@@ 123-127 (lines=5) @@
|
120 |
|
// Record sharing disable. Only needs to be done for WPCOM |
121 |
|
if ( ! $this->in_jetpack ) { |
122 |
|
if ( isset( $_POST['post_type'] ) && in_array( $_POST['post_type'], get_post_types( array( 'public' => true ) ) ) ) { |
123 |
|
if ( ! isset( $_POST['wpl_enable_post_sharing'] ) ) { |
124 |
|
update_post_meta( $post_id, 'sharing_disabled', 1 ); |
125 |
|
} else { |
126 |
|
delete_post_meta( $post_id, 'sharing_disabled' ); |
127 |
|
} |
128 |
|
} |
129 |
|
} |
130 |
|
|
modules/sharedaddy/sharedaddy.php 1 location
|
@@ 184-188 (lines=5) @@
|
181 |
|
if ( isset( $_POST['post_type'] ) && ( $post_type_object = get_post_type_object( $_POST['post_type'] ) ) && $post_type_object->public ) { |
182 |
|
if ( current_user_can( 'edit_post', $post_id ) ) { |
183 |
|
if ( isset( $_POST['sharing_status_hidden'] ) ) { |
184 |
|
if ( !isset( $_POST['enable_post_sharing'] ) ) { |
185 |
|
update_post_meta( $post_id, 'sharing_disabled', 1 ); |
186 |
|
} else { |
187 |
|
delete_post_meta( $post_id, 'sharing_disabled' ); |
188 |
|
} |
189 |
|
} |
190 |
|
} |
191 |
|
} |