WordPress.org

Make WordPress Core

Changeset 6125 for trunk/wp-mail.php


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

Add checks for WP_Error. Props filosofo. see #4809

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-mail.php

    r6056 r6125  
    149149
    150150    $post_ID = wp_insert_post($post_data);
     151    if ( is_wp_error( $post_ID ) )
     152        echo "\n" . $post_ID->get_error_message();
    151153
    152154    if (!$post_ID) {
Note: See TracChangeset for help on using the changeset viewer.