Changeset 17651
- Timestamp:
- 04/18/2011 05:30:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r17650 r17651 2282 2282 switch ( $content_struct["{$post_type}_status"] ) { 2283 2283 case 'draft': 2284 case 'pending': 2284 2285 case 'private': 2285 2286 case 'publish': 2286 2287 $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"];2292 2288 break; 2293 2289 default: … … 2671 2667 switch( $content_struct["{$post_type}_status"] ) { 2672 2668 case 'draft': 2669 case 'pending': 2673 2670 case 'private': 2674 2671 case 'publish': 2675 2672 $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"];2681 2673 break; 2682 2674 default:
Note: See TracChangeset
for help on using the changeset viewer.