WordPress.org

Make WordPress Core

Changeset 6125 for trunk/wp-app.php


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

Add checks for WP_Error. Props filosofo. see #4809

File:
1 edited

Legend:

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