Ticket #17000: rpc.diff
File rpc.diff, 1.2 KB (added by , 14 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
2189 2189 case 'draft': 2190 2190 case 'private': 2191 2191 case 'publish': 2192 case 'pending': 2192 2193 $post_status = $content_struct["{$post_type}_status"]; 2193 2194 break; 2194 case 'pending':2195 // Pending is only valid for posts, not pages.2196 if ( $post_type === 'post' )2197 $post_status = $content_struct["{$post_type}_status"];2198 break;2199 2195 default: 2200 2196 $post_status = $publish ? 'publish' : 'draft'; 2201 2197 break; … … 2577 2573 case 'draft': 2578 2574 case 'private': 2579 2575 case 'publish': 2576 case 'pending': 2580 2577 $post_status = $content_struct["{$post_type}_status"]; 2581 2578 break; 2582 case 'pending':2583 // Pending is only valid for posts, not pages.2584 if ( $post_type === 'post' )2585 $post_status = $content_struct["{$post_type}_status"];2586 break;2587 2579 default: 2588 2580 $post_status = $publish ? 'publish' : 'draft'; 2589 2581 break; … … 3524 3516 return $pingbacks; 3525 3517 } 3526 3518 } 3527 ?> 3528 No newline at end of file 3519 ?>