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:
parent
43b7cd700f
commit
aa60ae297d
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue