Make WordPress Core


Ignore:
Timestamp:
09/18/2007 04:32:22 PM (17 years ago)
Author:
ryan
Message:

Add checks for WP_Error. Props filosofo. see #4809

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post.php

    r6026 r6125  
    285285    // Create the post.
    286286    $post_ID = wp_insert_post( $_POST );
     287    if ( is_wp_error( $post_ID ) )
     288        return $post_ID;
    287289
    288290    if ( empty($post_ID) )
Note: See TracChangeset for help on using the changeset viewer.