Changeset 2006029
- Timestamp:
- 01/04/2019 12:15:35 AM (7 years ago)
- Location:
- moderation-tools-for-bbpress
- Files:
-
- 20 added
- 4 edited
-
tags/1.2.4 (added)
-
tags/1.2.4/README.md (added)
-
tags/1.2.4/css (added)
-
tags/1.2.4/css/admin.css (added)
-
tags/1.2.4/css/front.css (added)
-
tags/1.2.4/incs (added)
-
tags/1.2.4/incs/admin.php (added)
-
tags/1.2.4/incs/bbpress-modtools.php (added)
-
tags/1.2.4/incs/bbpress.php (added)
-
tags/1.2.4/incs/moderation.php (added)
-
tags/1.2.4/incs/notifications.php (added)
-
tags/1.2.4/incs/report.php (added)
-
tags/1.2.4/incs/scripts.php (added)
-
tags/1.2.4/incs/settings.php (added)
-
tags/1.2.4/incs/styles.php (added)
-
tags/1.2.4/incs/users.php (added)
-
tags/1.2.4/js (added)
-
tags/1.2.4/js/report-post.js (added)
-
tags/1.2.4/moderation-tools-bbpress.php (added)
-
tags/1.2.4/readme.txt (added)
-
trunk/incs/moderation.php (modified) (1 diff)
-
trunk/incs/notifications.php (modified) (6 diffs)
-
trunk/moderation-tools-bbpress.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
moderation-tools-for-bbpress/trunk/incs/moderation.php
r2005095 r2006029 246 246 247 247 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 ); 249 249 250 250 // If this isn't the last reply, reset topic freshness to previous state -
moderation-tools-for-bbpress/trunk/incs/notifications.php
r1917027 r2006029 18 18 * Notify admin of new topic with pending status 19 19 * @since 0.1.0 20 * 20 * 21 21 * @param int $topic_id 22 22 * @param int $forum_id … … 70 70 $blog_name = wp_specialchars_decode( get_option('blogname'), ENT_QUOTES ); 71 71 $subject = sprintf( __( '%s Moderation: %s', $this->plugin_slug ), $blog_name, $type ); 72 72 $recipients = []; 73 73 74 // Check if notify moderators is on 74 75 if ( get_option( '_bbp_notify_moderator ') ) { … … 94 95 // Get list of keymasters 95 96 $keymasters = get_users( array( 'role' => 'bbp_keymaster' ) ); 96 foreach ( $keymasters as $user ) {97 foreach ( $keymasters as $user ) { 97 98 $recipients[] = $user->user_email; 98 99 } … … 133 134 */ 134 135 private function handle_post_moderation_notification( $post_id ) { 135 136 136 137 if ( ! get_option( '_bbp_active_notification_post_held' ) ) 137 138 return; … … 225 226 return $author->display_name; 226 227 } 227 228 228 229 return __( 'Anonymous' ); 229 230 … … 236 237 */ 237 238 private function get_title( $post ) { 238 239 239 240 $title = $post->post_title; 240 241 241 242 // If no post title, check if it's a reply and get parent title 242 243 if ( ! $title && 'reply' == $post->post_type ) { -
moderation-tools-for-bbpress/trunk/moderation-tools-bbpress.php
r2005095 r2006029 4 4 Description: Extends the basic bbPress moderation tools to give you more control over your Forum. 5 5 Author: Digital Arm 6 Version: 1.2. 36 Version: 1.2.4 7 7 Author URI: https://www.digitalarm.co.uk 8 8 */ -
moderation-tools-for-bbpress/trunk/readme.txt
r2005095 r2006029 4 4 Requires at least: 4.0 5 5 Tested up to: 4.9.7 6 Stable tag: 1.2. 36 Stable tag: 1.2.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 56 56 == 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 57 61 58 62 = 1.2.3 =
Note: See TracChangeset
for help on using the changeset viewer.