Plugin Directory

Changeset 2006029


Ignore:
Timestamp:
01/04/2019 12:15:35 AM (7 years ago)
Author:
Digital Arm
Message:

1.2.4

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

Legend:

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

    r2005095 r2006029  
    246246
    247247                do_action( 'bbp_approved_reply', $post->ID );
    248                 do_action( 'bbp_new_reply', $post->ID, $topic_id, $forum_id, 0, $post->post_author, false, $reply_to );
     248                do_action( 'bbp_new_reply', $post->ID, $topic_id, $forum_id, 0, $post->post_author, true, $reply_to );
    249249
    250250                // If this isn't the last reply, reset topic freshness to previous state
  • moderation-tools-for-bbpress/trunk/incs/notifications.php

    r1917027 r2006029  
    1818     * Notify admin of new topic with pending status
    1919     * @since  0.1.0
    20      * 
     20     *
    2121     * @param int $topic_id
    2222     * @param int $forum_id
     
    7070        $blog_name = wp_specialchars_decode( get_option('blogname'), ENT_QUOTES );
    7171        $subject = sprintf( __( '%s Moderation: %s', $this->plugin_slug ), $blog_name, $type );
    72        
     72        $recipients = [];
     73
    7374        // Check if notify moderators is on
    7475        if ( get_option( '_bbp_notify_moderator ') ) {
     
    9495            // Get list of keymasters
    9596            $keymasters = get_users( array( 'role' => 'bbp_keymaster' ) );
    96             foreach( $keymasters as $user ) {
     97            foreach ( $keymasters as $user ) {
    9798                $recipients[] = $user->user_email;
    9899            }
     
    133134     */
    134135    private function handle_post_moderation_notification( $post_id ) {
    135        
     136
    136137        if ( ! get_option( '_bbp_active_notification_post_held' ) )
    137138            return;
     
    225226            return $author->display_name;
    226227        }
    227        
     228
    228229        return __( 'Anonymous' );
    229230
     
    236237     */
    237238    private function get_title( $post ) {
    238        
     239
    239240        $title = $post->post_title;
    240        
     241
    241242        // If no post title, check if it's a reply and get parent title
    242243        if ( ! $title && 'reply' == $post->post_type ) {
  • moderation-tools-for-bbpress/trunk/moderation-tools-bbpress.php

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

    r2005095 r2006029  
    44Requires at least: 4.0
    55Tested up to: 4.9.7
    6 Stable tag: 1.2.3
     6Stable tag: 1.2.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555
    5656== Changelog ==
     57
     58= 1.2.4 =
     59* Set bbp_new_reply action to edit = true
     60* Fix undefined index warning for recipients in notifications class
    5761
    5862= 1.2.3 =
Note: See TracChangeset for help on using the changeset viewer.