Make WordPress Core

Changeset 5898


Ignore:
Timestamp:
08/17/2007 11:32:49 PM (18 years ago)
Author:
ryan
Message:

mt_allow_pings fix. Props Joseph Scott and Allan Odgaard. fixes #4770 for 2.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r5888 r5898  
    10241024        if(isset($content_struct["mt_allow_pings"])) {
    10251025            if(!is_numeric($content_struct["mt_allow_pings"])) {
    1026                 switch($content["mt_allow_pings"]) {
     1026                switch($content_struct['mt_allow_pings']) {
    10271027                    case "closed":
    10281028                        $ping_status = "closed";
     
    12341234        if(isset($content_struct["mt_allow_pings"])) {
    12351235            if(!is_numeric($content_struct["mt_allow_pings"])) {
    1236                 switch($content["mt_allow_pings"]) {
     1236                switch($content_struct["mt_allow_pings"]) {
    12371237                    case "closed":
    12381238                        $ping_status = "closed";
     
    12581258                        break;
    12591259                }
    1260             }
    1261         }
    1262 
    1263         // Only set ping_status if it was provided.
    1264         if(isset($content_struct["mt_allow_pings"])) {
    1265             switch((int) $content_struct["mt_allow_pings"]) {
    1266                 case 0:
    1267                     $ping_status = "closed";
    1268                     break;
    1269                 case 1:
    1270                     $ping_status = "open";
    1271                     break;
    12721260            }
    12731261        }
Note: See TracChangeset for help on using the changeset viewer.