Ticket #17920: wp.getPage.patch

File wp.getPage.patch, 906 bytes (added by nprasath002, 23 months ago)
  • class-wp-xmlrpc-server.php

    # This patch file was generated by NetBeans IDE
    # Following Index: paths are relative to: /var/www/GSoC/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.
     
    494494                        if ( $page->post_status == 'draft' ) 
    495495                                $page_date_gmt = get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $page->post_date ), 'Ymd\TH:i:s' ); 
    496496 
    497                         // Pull the categories info together. 
    498                         $categories = array(); 
    499                         foreach ( wp_get_post_categories($page->ID) as $cat_id ) { 
    500                                 $categories[] = get_cat_name($cat_id); 
    501                         } 
    502  
    503497                        // Get the author info. 
    504498                        $author = get_userdata($page->post_author); 
    505499