Fix from Michel for XML-RPC error - http://mosquito.wordpress.org/view.php?id=829
git-svn-id: https://develop.svn.wordpress.org/trunk@2407 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
196315a23f
commit
651f4d0631
|
@ -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