Plugin Directory

Changeset 2004990


Ignore:
Timestamp:
01/02/2019 07:13:47 AM (7 years ago)
Author:
Digital Arm
Message:

1.2.2

Location:
moderation-tools-for-bbpress
Files:
20 added
3 edited

Legend:

Unmodified
Added
Removed
  • moderation-tools-for-bbpress/trunk/incs/moderation.php

    r1917027 r2004990  
    190190
    191191    }
    192    
     192
    193193    /**
    194194     * Handle moderator actions
     
    211211
    212212        $post = get_post( $post_id );
    213        
     213
    214214        if ( empty( $post ) ) {
    215215            return;
     
    234234
    235235                do_action( 'bbp_approved_topic', $post->ID );
    236                 do_action( 'bbp_new_topic', $post->ID, $forum_id );
     236                do_action( 'bbp_new_topic', $post->ID, $forum_id, 0, $post->post_author );
    237237            } else if ( 'reply' == $post->post_type ) {
    238238                $topic_id = bbp_get_reply_topic_id( $post->ID );
    239239                $forum_id = bbp_get_topic_forum_id( $topic_id );
     240                $reply_to = (int) get_post_meta( $post->ID, '_bbp_reply_to', true );
    240241
    241242                $bbp_reply_count = get_post_meta( $topic_id, '_bbp_reply_count', true );
     
    245246
    246247                do_action( 'bbp_approved_reply', $post->ID );
    247                 do_action( 'bbp_new_reply', $post->ID, $topic_id, $forum_id );
     248                do_action( 'bbp_new_reply', $post->ID, $topic_id, $forum_id, 0, $post->post_author, false, $reply_to );
    248249
    249250                // If this isn't the last reply, reset topic freshness to previous state
  • moderation-tools-for-bbpress/trunk/moderation-tools-bbpress.php

    r1917027 r2004990  
    44Description: Extends the basic bbPress moderation tools to give you more control over your Forum.
    55Author: Digital Arm
    6 Version: 1.2.1
     6Version: 1.2.2
    77Author URI: https://www.digitalarm.co.uk
    88*/
  • moderation-tools-for-bbpress/trunk/readme.txt

    r1917027 r2004990  
    44Requires at least: 4.0
    55Tested up to: 4.9.7
    6 Stable tag: 1.2.1
     6Stable tag: 1.2.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555
    5656== Changelog ==
     57
     58= 1.2.2 =
     59* Add all arguments to bbp_new_topic and bbp_new_reply
    5760
    5861= 1.2.1 =
Note: See TracChangeset for help on using the changeset viewer.