Skip to:
Content

bbPress.org

Changes between Initial Version and Version 1 of Ticket #2817, comment 3


Ignore:
Timestamp:
06/03/2015 08:36:29 AM (11 years ago)
Author:
tharsheblows
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2817, comment 3

    initial v1  
    11I put it in the wrong wp_insert_post in replies/functions.php, argh. This one expects the WP Error object to be returned on failure, the other one doesn't.
     2
     3Oops, editing to include code to show where it's expecting it, eg in forums/functions.phpL340
     4
     5{{{
     6// Errors
     7        } else {
     8                $append_error = ( is_wp_error( $forum_id ) && $forum_id->get_error_message() ) ? $forum_id->get_error_message() . ' ' : '';
     9                bbp_add_error( 'bbp_forum_error', __( '<strong>ERROR</strong>: The following problem(s) have been found with your forum:' . $append_error, 'bbpress' ) );
     10        }
     11}}}