Ticket #4770: ping-xmlrpc.php.diff
| File ping-xmlrpc.php.diff, 1.2 KB (added by , 18 years ago) |
|---|
-
xmlrpc.php
1023 1023 1024 1024 if(isset($content_struct["mt_allow_pings"])) { 1025 1025 if(!is_numeric($content_struct["mt_allow_pings"])) { 1026 switch($content ["mt_allow_pings"]) {1026 switch($content_struct['mt_allow_pings']) { 1027 1027 case "closed": 1028 1028 $ping_status = "closed"; 1029 1029 break; … … 1233 1233 1234 1234 if(isset($content_struct["mt_allow_pings"])) { 1235 1235 if(!is_numeric($content_struct["mt_allow_pings"])) { 1236 switch($content ["mt_allow_pings"]) {1236 switch($content_struct["mt_allow_pings"]) { 1237 1237 case "closed": 1238 1238 $ping_status = "closed"; 1239 1239 break; … … 1260 1260 } 1261 1261 } 1262 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;1272 }1273 }1274 1275 1263 $post_title = $content_struct['title']; 1276 1264 $post_content = apply_filters( 'content_save_pre', $content_struct['description'] ); 1277 1265 $catnames = $content_struct['categories'];