@@ 5154-5162 (lines=9) @@ | ||
5151 | } |
|
5152 | ||
5153 | $post_category = array(); |
|
5154 | if ( isset( $content_struct['categories'] ) ) { |
|
5155 | $catnames = $content_struct['categories']; |
|
5156 | ||
5157 | if ( is_array($catnames) ) { |
|
5158 | foreach ($catnames as $cat) { |
|
5159 | $post_category[] = get_cat_ID($cat); |
|
5160 | } |
|
5161 | } |
|
5162 | } |
|
5163 | ||
5164 | $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt', 'comment_status', 'ping_status', 'to_ping', 'post_type', 'post_name', 'post_password', 'post_parent', 'menu_order', 'tags_input', 'page_template'); |
|
5165 | ||
@@ 5447-5454 (lines=8) @@ | ||
5444 | $post_content = $content_struct['description']; |
|
5445 | ||
5446 | $post_category = array(); |
|
5447 | if ( isset( $content_struct['categories'] ) ) { |
|
5448 | $catnames = $content_struct['categories']; |
|
5449 | if ( is_array($catnames) ) { |
|
5450 | foreach ($catnames as $cat) { |
|
5451 | $post_category[] = get_cat_ID($cat); |
|
5452 | } |
|
5453 | } |
|
5454 | } |
|
5455 | ||
5456 | if ( isset( $content_struct['mt_excerpt'] ) ) |
|
5457 | $post_excerpt = $content_struct['mt_excerpt']; |