Skip to:
Content

bbPress.org


Ignore:
Timestamp:
06/08/2017 04:06:24 AM (9 years ago)
Author:
johnjamesjacoby
Message:

General: Audit wp_insert_post() usages.

Return a WP_Error object in some instances, and explicitly do not in others.

Where possible, use the error message in the user feedback response.

Fixes #2817.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/classes/class-bbp-converter-base.php

    r6490 r6499  
    596596
    597597                            default:
    598                                 $post_id = wp_insert_post( $insert_post );
     598                                $post_id = wp_insert_post( $insert_post, true );
    599599
    600600                                if ( is_numeric( $post_id ) ) {
Note: See TracChangeset for help on using the changeset viewer.