Changeset 11344
- Timestamp:
- 05/15/2009 09:27:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r11323 r11344 1612 1612 * @since 1.0.0 1613 1613 * 1614 * @param array|object $postarr Post data. 1614 * @param array|object $postarr Post data. Arrays are expected to be escaped, objects are not. 1615 1615 * @return int 0 on failure, Post ID on success. 1616 1616 */ 1617 1617 function wp_update_post($postarr = array()) { 1618 if ( is_object($postarr) ) 1618 if ( is_object($postarr) ) { 1619 // non-escaped post was passed 1619 1620 $postarr = get_object_vars($postarr); 1621 $postarr = add_magic_quotes($postarr); 1622 } 1620 1623 1621 1624 // First, get all of the original fields
Note: See TracChangeset
for help on using the changeset viewer.