@@ 5048-5060 (lines=13) @@ | ||
5045 | ||
5046 | $post_status = $publish ? 'publish' : 'draft'; |
|
5047 | ||
5048 | if ( isset( $content_struct["{$post_type}_status"] ) ) { |
|
5049 | switch ( $content_struct["{$post_type}_status"] ) { |
|
5050 | case 'draft': |
|
5051 | case 'pending': |
|
5052 | case 'private': |
|
5053 | case 'publish': |
|
5054 | $post_status = $content_struct["{$post_type}_status"]; |
|
5055 | break; |
|
5056 | default: |
|
5057 | $post_status = $publish ? 'publish' : 'draft'; |
|
5058 | break; |
|
5059 | } |
|
5060 | } |
|
5061 | ||
5062 | $post_excerpt = isset($content_struct['mt_excerpt']) ? $content_struct['mt_excerpt'] : null; |
|
5063 | $post_more = isset($content_struct['mt_text_more']) ? $content_struct['mt_text_more'] : null; |
|
@@ 5462-5474 (lines=13) @@ | ||
5459 | $post_more = isset( $content_struct['mt_text_more'] ) ? $content_struct['mt_text_more'] : null; |
|
5460 | ||
5461 | $post_status = $publish ? 'publish' : 'draft'; |
|
5462 | if ( isset( $content_struct["{$post_type}_status"] ) ) { |
|
5463 | switch( $content_struct["{$post_type}_status"] ) { |
|
5464 | case 'draft': |
|
5465 | case 'pending': |
|
5466 | case 'private': |
|
5467 | case 'publish': |
|
5468 | $post_status = $content_struct["{$post_type}_status"]; |
|
5469 | break; |
|
5470 | default: |
|
5471 | $post_status = $publish ? 'publish' : 'draft'; |
|
5472 | break; |
|
5473 | } |
|
5474 | } |
|
5475 | ||
5476 | $tags_input = isset( $content_struct['mt_keywords'] ) ? $content_struct['mt_keywords'] : null; |
|
5477 |