Make WordPress Core

Ticket #17000: rpc.diff

File rpc.diff, 1.2 KB (added by josephscott, 14 years ago)
  • wp-includes/class-wp-xmlrpc-server.php

     
    21892189                                case 'draft':
    21902190                                case 'private':
    21912191                                case 'publish':
     2192                                case 'pending':
    21922193                                        $post_status = $content_struct["{$post_type}_status"];
    21932194                                        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;
    21992195                                default:
    22002196                                        $post_status = $publish ? 'publish' : 'draft';
    22012197                                        break;
     
    25772573                                case 'draft':
    25782574                                case 'private':
    25792575                                case 'publish':
     2576                                case 'pending':
    25802577                                        $post_status = $content_struct["{$post_type}_status"];
    25812578                                        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;
    25872579                                default:
    25882580                                        $post_status = $publish ? 'publish' : 'draft';
    25892581                                        break;
     
    35243516                return $pingbacks;
    35253517        }
    35263518}
    3527 ?>
    3528  No newline at end of file
     3519?>