Changeset 7161
- Timestamp:
- 03/05/08 18:49:56 (7 months ago)
- Files:
-
- trunk/wp-includes/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
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);
