Ticket #15072: 15072.diff
| File 15072.diff, 1.2 KB (added by , 15 years ago) |
|---|
-
wp-includes/class-wp-xmlrpc-server.php
1768 1768 1769 1769 $categories = implode(',', wp_get_post_categories($post_ID)); 1770 1770 1771 $content = '<title>'. stripslashes($post_data['post_title']).'</title>';1771 $content = '<title>'.$post_data['post_title'].'</title>'; 1772 1772 $content .= '<category>'.$categories.'</category>'; 1773 $content .= stripslashes($post_data['post_content']);1773 $content .= $post_data['post_content']; 1774 1774 1775 1775 $struct = array( 1776 1776 'userid' => $post_data['post_author'], … … 1822 1822 $post_date = mysql2date('Ymd\TH:i:s', $entry['post_date'], false); 1823 1823 $categories = implode(',', wp_get_post_categories($entry['ID'])); 1824 1824 1825 $content = '<title>'. stripslashes($entry['post_title']).'</title>';1825 $content = '<title>'.$entry['post_title'].'</title>'; 1826 1826 $content .= '<category>'.$categories.'</category>'; 1827 $content .= stripslashes($entry['post_content']);1827 $content .= $entry['post_content']; 1828 1828 1829 1829 $struct[] = array( 1830 1830 'userid' => $entry['post_author'],