Correct support for mt_allow_comments to cover all possible values. Fixes #5366 props redsweater/josephscott
git-svn-id: https://develop.svn.wordpress.org/trunk@6347 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2c8864821d
commit
eab6b80195
|
@ -1010,6 +1010,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
else {
|
else {
|
||||||
switch((int) $content_struct["mt_allow_comments"]) {
|
switch((int) $content_struct["mt_allow_comments"]) {
|
||||||
case 0:
|
case 0:
|
||||||
|
case 2:
|
||||||
$comment_status = "closed";
|
$comment_status = "closed";
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
@ -1225,6 +1226,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
else {
|
else {
|
||||||
switch((int) $content_struct["mt_allow_comments"]) {
|
switch((int) $content_struct["mt_allow_comments"]) {
|
||||||
case 0:
|
case 0:
|
||||||
|
case 2:
|
||||||
$comment_status = "closed";
|
$comment_status = "closed";
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
|
Loading…
Reference in New Issue