@@ 5067-5096 (lines=30) @@ | ||
5064 | ||
5065 | $tags_input = isset($content_struct['mt_keywords']) ? $content_struct['mt_keywords'] : null; |
|
5066 | ||
5067 | if ( isset($content_struct['mt_allow_comments']) ) { |
|
5068 | if ( !is_numeric($content_struct['mt_allow_comments']) ) { |
|
5069 | switch ( $content_struct['mt_allow_comments'] ) { |
|
5070 | case 'closed': |
|
5071 | $comment_status = 'closed'; |
|
5072 | break; |
|
5073 | case 'open': |
|
5074 | $comment_status = 'open'; |
|
5075 | break; |
|
5076 | default: |
|
5077 | $comment_status = get_default_comment_status( $post_type ); |
|
5078 | break; |
|
5079 | } |
|
5080 | } else { |
|
5081 | switch ( (int) $content_struct['mt_allow_comments'] ) { |
|
5082 | case 0: |
|
5083 | case 2: |
|
5084 | $comment_status = 'closed'; |
|
5085 | break; |
|
5086 | case 1: |
|
5087 | $comment_status = 'open'; |
|
5088 | break; |
|
5089 | default: |
|
5090 | $comment_status = get_default_comment_status( $post_type ); |
|
5091 | break; |
|
5092 | } |
|
5093 | } |
|
5094 | } else { |
|
5095 | $comment_status = get_default_comment_status( $post_type ); |
|
5096 | } |
|
5097 | ||
5098 | if ( isset($content_struct['mt_allow_pings']) ) { |
|
5099 | if ( !is_numeric($content_struct['mt_allow_pings']) ) { |
|
@@ 5098-5126 (lines=29) @@ | ||
5095 | $comment_status = get_default_comment_status( $post_type ); |
|
5096 | } |
|
5097 | ||
5098 | if ( isset($content_struct['mt_allow_pings']) ) { |
|
5099 | if ( !is_numeric($content_struct['mt_allow_pings']) ) { |
|
5100 | switch ( $content_struct['mt_allow_pings'] ) { |
|
5101 | case 'closed': |
|
5102 | $ping_status = 'closed'; |
|
5103 | break; |
|
5104 | case 'open': |
|
5105 | $ping_status = 'open'; |
|
5106 | break; |
|
5107 | default: |
|
5108 | $ping_status = get_default_comment_status( $post_type, 'pingback' ); |
|
5109 | break; |
|
5110 | } |
|
5111 | } else { |
|
5112 | switch ( (int) $content_struct['mt_allow_pings'] ) { |
|
5113 | case 0: |
|
5114 | $ping_status = 'closed'; |
|
5115 | break; |
|
5116 | case 1: |
|
5117 | $ping_status = 'open'; |
|
5118 | break; |
|
5119 | default: |
|
5120 | $ping_status = get_default_comment_status( $post_type, 'pingback' ); |
|
5121 | break; |
|
5122 | } |
|
5123 | } |
|
5124 | } else { |
|
5125 | $ping_status = get_default_comment_status( $post_type, 'pingback' ); |
|
5126 | } |
|
5127 | ||
5128 | if ( $post_more ) |
|
5129 | $post_content = $post_content . '<!--more-->' . $post_more; |