@@ 202-208 (lines=7) @@ | ||
199 | $post_data['post_type'] = $post->post_type; |
|
200 | $post_data['post_mime_type'] = $post->post_mime_type; |
|
201 | ||
202 | if ( ! empty( $post_data['post_status'] ) ) { |
|
203 | $post_data['post_status'] = sanitize_key( $post_data['post_status'] ); |
|
204 | ||
205 | if ( 'inherit' == $post_data['post_status'] ) { |
|
206 | unset( $post_data['post_status'] ); |
|
207 | } |
|
208 | } |
|
209 | ||
210 | $ptype = get_post_type_object($post_data['post_type']); |
|
211 | if ( !current_user_can( 'edit_post', $post_ID ) ) { |
|
@@ 444-450 (lines=7) @@ | ||
441 | } |
|
442 | unset($post_data['_status']); |
|
443 | ||
444 | if ( ! empty( $post_data['post_status'] ) ) { |
|
445 | $post_data['post_status'] = sanitize_key( $post_data['post_status'] ); |
|
446 | ||
447 | if ( 'inherit' == $post_data['post_status'] ) { |
|
448 | unset( $post_data['post_status'] ); |
|
449 | } |
|
450 | } |
|
451 | ||
452 | $post_IDs = array_map( 'intval', (array) $post_data['post'] ); |
|
453 |