@@ 4955-4984 (lines=30) @@ | ||
4952 | ||
4953 | $tags_input = isset($content_struct['mt_keywords']) ? $content_struct['mt_keywords'] : null; |
|
4954 | ||
4955 | if ( isset($content_struct['mt_allow_comments']) ) { |
|
4956 | if ( !is_numeric($content_struct['mt_allow_comments']) ) { |
|
4957 | switch ( $content_struct['mt_allow_comments'] ) { |
|
4958 | case 'closed': |
|
4959 | $comment_status = 'closed'; |
|
4960 | break; |
|
4961 | case 'open': |
|
4962 | $comment_status = 'open'; |
|
4963 | break; |
|
4964 | default: |
|
4965 | $comment_status = get_default_comment_status( $post_type ); |
|
4966 | break; |
|
4967 | } |
|
4968 | } else { |
|
4969 | switch ( (int) $content_struct['mt_allow_comments'] ) { |
|
4970 | case 0: |
|
4971 | case 2: |
|
4972 | $comment_status = 'closed'; |
|
4973 | break; |
|
4974 | case 1: |
|
4975 | $comment_status = 'open'; |
|
4976 | break; |
|
4977 | default: |
|
4978 | $comment_status = get_default_comment_status( $post_type ); |
|
4979 | break; |
|
4980 | } |
|
4981 | } |
|
4982 | } else { |
|
4983 | $comment_status = get_default_comment_status( $post_type ); |
|
4984 | } |
|
4985 | ||
4986 | if ( isset($content_struct['mt_allow_pings']) ) { |
|
4987 | if ( !is_numeric($content_struct['mt_allow_pings']) ) { |
|
@@ 4986-5014 (lines=29) @@ | ||
4983 | $comment_status = get_default_comment_status( $post_type ); |
|
4984 | } |
|
4985 | ||
4986 | if ( isset($content_struct['mt_allow_pings']) ) { |
|
4987 | if ( !is_numeric($content_struct['mt_allow_pings']) ) { |
|
4988 | switch ( $content_struct['mt_allow_pings'] ) { |
|
4989 | case 'closed': |
|
4990 | $ping_status = 'closed'; |
|
4991 | break; |
|
4992 | case 'open': |
|
4993 | $ping_status = 'open'; |
|
4994 | break; |
|
4995 | default: |
|
4996 | $ping_status = get_default_comment_status( $post_type, 'pingback' ); |
|
4997 | break; |
|
4998 | } |
|
4999 | } else { |
|
5000 | switch ( (int) $content_struct['mt_allow_pings'] ) { |
|
5001 | case 0: |
|
5002 | $ping_status = 'closed'; |
|
5003 | break; |
|
5004 | case 1: |
|
5005 | $ping_status = 'open'; |
|
5006 | break; |
|
5007 | default: |
|
5008 | $ping_status = get_default_comment_status( $post_type, 'pingback' ); |
|
5009 | break; |
|
5010 | } |
|
5011 | } |
|
5012 | } else { |
|
5013 | $ping_status = get_default_comment_status( $post_type, 'pingback' ); |
|
5014 | } |
|
5015 | ||
5016 | if ( $post_more ) |
|
5017 | $post_content = $post_content . '<!--more-->' . $post_more; |