Changeset 6125 for trunk/wp-app.php

Show
Ignore:
Timestamp:
09/18/07 16:32:22 (1 year ago)
Author:
ryan
Message:

Add checks for WP_Error. Props filosofo. see #4809

Files:

Legend:

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

    r6032 r6125  
    263263 
    264264        $postID = wp_insert_post($post_data); 
     265        if ( is_wp_error( $postID ) ) 
     266            $this->internal_error($postID->get_error_message()); 
    265267 
    266268        if (!$postID) {