Ticket #22324: 22324.fix-xmlrpc.diff
File 22324.fix-xmlrpc.diff, 2.6 KB (added by , 12 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
628 628 'post_status' => $post['post_status'], 629 629 'post_type' => $post['post_type'], 630 630 'post_name' => $post['post_name'], 631 'post_author' => $post['post_author'],631 'post_author' => (string) $post['post_author'], 632 632 'post_password' => $post['post_password'], 633 633 'post_excerpt' => $post['post_excerpt'], 634 634 'post_content' => $post['post_content'], … … 810 810 811 811 $_page = array( 812 812 'dateCreated' => $page_date, 813 'userid' => $page->post_author,813 'userid' => (string) $page->post_author, 814 814 'page_id' => $page->ID, 815 815 'page_status' => $page->post_status, 816 816 'description' => $full_page['main'], … … 3751 3751 $content .= stripslashes($post_data['post_content']); 3752 3752 3753 3753 $struct = array( 3754 'userid' =>$post_data['post_author'],3754 'userid' => (string) $post_data['post_author'], 3755 3755 'dateCreated' => $this->_convert_date( $post_data['post_date'] ), 3756 3756 'content' => $content, 3757 'postid' => (string) $post_data['ID']3757 'postid' => (string) $post_data['ID'] 3758 3758 ); 3759 3759 3760 3760 return $struct; … … 3805 3805 $content .= stripslashes($entry['post_content']); 3806 3806 3807 3807 $struct[] = array( 3808 'userid' =>$entry['post_author'],3808 'userid' => (string) $entry['post_author'], 3809 3809 'dateCreated' => $post_date, 3810 'content' => $content,3811 'postid' => (string) $entry['ID'],3810 'content' => $content, 3811 'postid' => (string) $entry['ID'], 3812 3812 ); 3813 3813 3814 3814 } … … 4696 4696 4697 4697 $resp = array( 4698 4698 'dateCreated' => $post_date, 4699 'userid' => $postdata['post_author'],4699 'userid' => (string) $postdata['post_author'], 4700 4700 'postid' => $postdata['ID'], 4701 4701 'description' => $post['main'], 4702 4702 'title' => $postdata['post_title'], … … 4810 4810 4811 4811 $struct[] = array( 4812 4812 'dateCreated' => $post_date, 4813 'userid' => $entry['post_author'],4813 'userid' => (string) $entry['post_author'], 4814 4814 'postid' => (string) $entry['ID'], 4815 4815 'description' => $post['main'], 4816 4816 'title' => $entry['post_title'], … … 5031 5031 5032 5032 $struct[] = array( 5033 5033 'dateCreated' => $post_date, 5034 'userid' => $entry['post_author'],5034 'userid' => (string) $entry['post_author'], 5035 5035 'postid' => (string) $entry['ID'], 5036 5036 'title' => $entry['post_title'], 5037 5037 'post_status' => $entry['post_status'],