Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/02/2012 12:39:16 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Akismet:

  • Pass additional post information on topic/reply edit, to prevent Akismet from nooping it.
  • Revert part of r4041; put actions back before bbp_is_error() calls.
  • Replace some missing revision numbers.
  • Fixes #1869.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-reply-functions.php

    r4041 r4042  
    228228
    229229    /** Additional Actions (Before Save) **************************************/
    230    
     230
     231    do_action( 'bbp_new_reply_pre_extras', $topic_id, $forum_id );
     232
    231233    // Bail if errors
    232234    if ( bbp_has_errors() )
     
    234236
    235237    /** No Errors *************************************************************/
    236 
    237     do_action( 'bbp_new_reply_pre_extras', $topic_id, $forum_id );
    238238
    239239    // Add the content of the form to $reply_data as an array
     
    505505        'post_title'   => $reply_title,
    506506        'post_content' => $reply_content,
    507         'post_status'  => $post_status
     507        'post_status'  => $post_status,
     508        'post_parent'  => $reply->post_parent,
     509        'post_author'  => $reply->post_author,
     510        'post_type'    => bbp_get_reply_post_type()
    508511    ) );
    509512
Note: See TracChangeset for help on using the changeset viewer.