Ticket #9727: 9727.diff
File 9727.diff, 584 bytes (added by , 16 years ago) |
---|
-
wp-includes/post.php
1613 1613 * @return int 0 on failure, Post ID on success. 1614 1614 */ 1615 1615 function wp_update_post($postarr = array()) { 1616 if ( is_object($postarr) ) 1616 if ( is_object($postarr) ) { 1617 // non-escaped post was passed 1617 1618 $postarr = get_object_vars($postarr); 1619 $postarr = add_magic_quotes($postarr); 1620 } 1618 1621 1619 1622 // First, get all of the original fields 1620 1623 $post = wp_get_single_post($postarr['ID'], ARRAY_A);