hironroy (@hironroy)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • @hironroy

    Participant

    I ran into the same issue w/ bbPress 2.2.3. Just the content is cleared out when a new topic has validation errors; the tags and topic type fields are preserved. I directly modified bbPress 2.2.3 in order to resolve this issue on my installation:

    1. Navigated to bbpress/includes/common/template-tags.php line 1605
    2. Removed the “if” statement so that the $post_content gets set by calling ‘bbp_get_form_topic_content’
      //if ( bbp_is_edit() ){
      $post_content = call_user_func( 'bbp_get_form_' . $context . '_content' );
      // }

    I did some minimal testing and the behavior of other topic editing seems to be unaffected by this change, and the change makes the content persist on New Topic Validation Error responses

Viewing 1 replies (of 1 total)