Correct support for mt_allow_comments to cover all possible values. Fixes #5366 props redsweater/josephscott

git-svn-id: http://svn.automattic.com/wordpress/trunk@6347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-11-28 20:52:55 +00:00
parent 43b7cd700f
commit aa60ae297d
1 changed files with 2 additions and 0 deletions

View File

@ -1010,6 +1010,7 @@ class wp_xmlrpc_server extends IXR_Server {
else {
switch((int) $content_struct["mt_allow_comments"]) {
case 0:
case 2:
$comment_status = "closed";
break;
case 1:
@ -1225,6 +1226,7 @@ class wp_xmlrpc_server extends IXR_Server {
else {
switch((int) $content_struct["mt_allow_comments"]) {
case 0:
case 2:
$comment_status = "closed";
break;
case 1: