Changeset 7161
- Timestamp:
- 03/05/2008 06:49:56 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r7135 r7161 726 726 return $post; 727 727 if ( is_object($post) ) { 728 if ( !isset($post->ID) )729 return $post;730 728 foreach ( array_keys(get_object_vars($post)) as $field ) 731 729 $post->$field = sanitize_post_field($field, $post->$field, $post->ID, $context); 732 730 } else { 733 if ( !isset($post['ID']) )734 return $post;735 731 foreach ( array_keys($post) as $field ) 736 732 $post[$field] = sanitize_post_field($field, $post[$field], $post['ID'], $context);
Note: See TracChangeset
for help on using the changeset viewer.