mt_allow_pings fix. Props Joseph Scott and Allan Odgaard. fixes #4770 for 2.2
git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@5905 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
062d072c1c
commit
f6d340da08
|
@ -1033,7 +1033,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
|
|
||||||
if(isset($content_struct["mt_allow_pings"])) {
|
if(isset($content_struct["mt_allow_pings"])) {
|
||||||
if(!is_numeric($content_struct["mt_allow_pings"])) {
|
if(!is_numeric($content_struct["mt_allow_pings"])) {
|
||||||
switch($content["mt_allow_pings"]) {
|
switch($content_struct["mt_allow_pings"]) {
|
||||||
case "closed":
|
case "closed":
|
||||||
$ping_status = "closed";
|
$ping_status = "closed";
|
||||||
break;
|
break;
|
||||||
|
@ -1245,7 +1245,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||||
|
|
||||||
if(isset($content_struct["mt_allow_pings"])) {
|
if(isset($content_struct["mt_allow_pings"])) {
|
||||||
if(!is_numeric($content_struct["mt_allow_pings"])) {
|
if(!is_numeric($content_struct["mt_allow_pings"])) {
|
||||||
switch($content["mt_allow_pings"]) {
|
switch($content_struct["mt_allow_pings"]) {
|
||||||
case "closed":
|
case "closed":
|
||||||
$ping_status = "closed";
|
$ping_status = "closed";
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue