Skip to:
Content

bbPress.org

Changeset 4509


Ignore:
Timestamp:
11/24/2012 08:56:53 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Posting:

  • Fix bug causing forum/topic/reply content not to be retained when an error occurs.
  • Fixes #2057.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/common/template-tags.php

    r4508 r4509  
    15991599
    16001600        // Assume we are not editing
    1601         $post_content = '';
     1601        $post_content = call_user_func( 'bbp_get_form_' . $r['context'] . '_content' );
    16021602
    16031603        // Start an output buffor
     
    16071607        if ( !empty( $r['before'] ) ) {
    16081608            echo $r['before'];
    1609         }
    1610 
    1611         // Get sanitized content
    1612         if ( bbp_is_edit() ) {
    1613             $post_content = call_user_func( 'bbp_get_form_' . $r['context'] . '_content' );
    16141609        }
    16151610
Note: See TracChangeset for help on using the changeset viewer.