Make WordPress Core

Ticket #16985: 16985(2).diff

File 16985(2).diff, 1.3 KB (added by nprasath002, 14 years ago)
  • class-wp-xmlrpc-server.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: /var/www/wordtrunk/wp-includes
    # This patch can be applied using context Tools: Patch action on respective folder.
    # It uses platform neutral UTF-8 encoding and \n newlines.
    # Above lines and this line are ignored by the patching process.
     
    21882188                        switch ( $content_struct["{$post_type}_status"] ) {
    21892189                                case 'draft':
    21902190                                case 'private':
     2191                                case 'future':
    21912192                                case 'publish':
    21922193                                        $post_status = $content_struct["{$post_type}_status"];
    21932194                                        break;
     
    22872288                if ( !empty( $dateCreated ) ) {
    22882289                        $post_date = get_date_from_gmt(iso8601_to_datetime($dateCreated));
    22892290                        $post_date_gmt = iso8601_to_datetime($dateCreated, 'GMT');
    2290                 } else {
    2291                         $post_date = current_time('mysql');
    2292                         $post_date_gmt = current_time('mysql', 1);
    22932291                }
    22942292
    22952293                $post_category = array();
     
    25762574                        switch( $content_struct["{$post_type}_status"] ) {
    25772575                                case 'draft':
    25782576                                case 'private':
     2577                                case 'future' :
     2578 No newline at end of file
    25792579                                case 'publish':
    25802580                                        $post_status = $content_struct["{$post_type}_status"];
    25812581                                        break;