@@ 4936-4948 (lines=13) @@ | ||
4933 | ||
4934 | $post_status = $publish ? 'publish' : 'draft'; |
|
4935 | ||
4936 | if ( isset( $content_struct["{$post_type}_status"] ) ) { |
|
4937 | switch ( $content_struct["{$post_type}_status"] ) { |
|
4938 | case 'draft': |
|
4939 | case 'pending': |
|
4940 | case 'private': |
|
4941 | case 'publish': |
|
4942 | $post_status = $content_struct["{$post_type}_status"]; |
|
4943 | break; |
|
4944 | default: |
|
4945 | $post_status = $publish ? 'publish' : 'draft'; |
|
4946 | break; |
|
4947 | } |
|
4948 | } |
|
4949 | ||
4950 | $post_excerpt = isset($content_struct['mt_excerpt']) ? $content_struct['mt_excerpt'] : null; |
|
4951 | $post_more = isset($content_struct['mt_text_more']) ? $content_struct['mt_text_more'] : null; |
|
@@ 5347-5359 (lines=13) @@ | ||
5344 | $post_more = isset( $content_struct['mt_text_more'] ) ? $content_struct['mt_text_more'] : null; |
|
5345 | ||
5346 | $post_status = $publish ? 'publish' : 'draft'; |
|
5347 | if ( isset( $content_struct["{$post_type}_status"] ) ) { |
|
5348 | switch( $content_struct["{$post_type}_status"] ) { |
|
5349 | case 'draft': |
|
5350 | case 'pending': |
|
5351 | case 'private': |
|
5352 | case 'publish': |
|
5353 | $post_status = $content_struct["{$post_type}_status"]; |
|
5354 | break; |
|
5355 | default: |
|
5356 | $post_status = $publish ? 'publish' : 'draft'; |
|
5357 | break; |
|
5358 | } |
|
5359 | } |
|
5360 | ||
5361 | $tags_input = isset( $content_struct['mt_keywords'] ) ? $content_struct['mt_keywords'] : null; |
|
5362 |