Make WordPress Core

Changeset 7161


Ignore:
Timestamp:
03/05/2008 06:49:56 PM (18 years ago)
Author:
matt
Message:

Don't return early before filtering.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.