Changeset 7161

Show
Ignore:
Timestamp:
03/05/08 18:49:56 (7 months ago)
Author:
matt
Message:

Don't return early before filtering.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-includes/post.php

    r7135 r7161  
    726726        return $post; 
    727727    if ( is_object($post) ) { 
    728         if ( !isset($post->ID) ) 
    729             return $post; 
    730728        foreach ( array_keys(get_object_vars($post)) as $field ) 
    731729            $post->$field = sanitize_post_field($field, $post->$field, $post->ID, $context); 
    732730    } else { 
    733         if ( !isset($post['ID']) ) 
    734             return $post; 
    735731        foreach ( array_keys($post) as $field ) 
    736732            $post[$field] = sanitize_post_field($field, $post[$field], $post['ID'], $context);