Fix from Michel for XML-RPC error - http://mosquito.wordpress.org/view.php?id=829
git-svn-id: http://svn.automattic.com/wordpress/trunk@2407 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2f10c8b2f3
commit
4b3cb04c1b
|
@ -139,12 +139,13 @@ function wp_update_post($postarr = array()) {
|
||||||
WHERE ID = $ID";
|
WHERE ID = $ID";
|
||||||
|
|
||||||
$result = $wpdb->query($sql);
|
$result = $wpdb->query($sql);
|
||||||
|
$rows_affected = $wpdb->rows_affected;
|
||||||
|
|
||||||
wp_set_post_cats('', $ID, $post_category);
|
wp_set_post_cats('', $ID, $post_category)
|
||||||
|
|
||||||
do_action('edit_post', $ID);
|
do_action('edit_post', $ID);
|
||||||
|
|
||||||
return $wpdb->rows_affected;
|
return $rows_affected;
|
||||||
}
|
}
|
||||||
|
|
||||||
function wp_get_post_cats($blogid = '1', $post_ID = 0) {
|
function wp_get_post_cats($blogid = '1', $post_ID = 0) {
|
||||||
|
|
Loading…
Reference in New Issue