Make WordPress Core

Changeset 2407


Ignore:
Timestamp:
03/04/2005 08:43:57 PM (19 years ago)
Author:
matt
Message:

Fix from Michel for XML-RPC error - http://mosquito.wordpress.org/view.php?id=829

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-post.php

    r2358 r2407  
    140140       
    141141    $result = $wpdb->query($sql);
    142 
    143     wp_set_post_cats('', $ID, $post_category);
     142    $rows_affected = $wpdb->rows_affected;
     143
     144    wp_set_post_cats('', $ID, $post_category)
    144145
    145146    do_action('edit_post', $ID);
    146147
    147     return $wpdb->rows_affected;
     148    return $rows_affected;
    148149}
    149150
Note: See TracChangeset for help on using the changeset viewer.