Make WordPress Core

Changeset 17651


Ignore:
Timestamp:
04/18/2011 05:30:58 PM (15 years ago)
Author:
josephscott
Message:

Allow Pages to have a status of pending.

Fixes #17000 props mrroundhill, nprasath002

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r17650 r17651  
    22822282                        switch ( $content_struct["{$post_type}_status"] ) {
    22832283                                case 'draft':
     2284                                case 'pending':
    22842285                                case 'private':
    22852286                                case 'publish':
    22862287                                        $post_status = $content_struct["{$post_type}_status"];
    2287                                         break;
    2288                                 case 'pending':
    2289                                         // Pending is only valid for posts, not pages.
    2290                                         if ( $post_type === 'post' )
    2291                                                 $post_status = $content_struct["{$post_type}_status"];
    22922288                                        break;
    22932289                                default:
    … …  
    26712667                        switch( $content_struct["{$post_type}_status"] ) {
    26722668                                case 'draft':
     2669                                case 'pending':
    26732670                                case 'private':
    26742671                                case 'publish':
    26752672                                        $post_status = $content_struct["{$post_type}_status"];
    2676                                         break;
    2677                                 case 'pending':
    2678                                         // Pending is only valid for posts, not pages.
    2679                                         if ( $post_type === 'post' )
    2680                                                 $post_status = $content_struct["{$post_type}_status"];
    26812673                                        break;
    26822674                                default:
Note: See TracChangeset for help on using the changeset viewer.