Changeset 2004990
- Timestamp:
- 01/02/2019 07:13:47 AM (7 years ago)
- Location:
- moderation-tools-for-bbpress
- Files:
-
- 20 added
- 3 edited
-
tags/1.2.2 (added)
-
tags/1.2.2/README.md (added)
-
tags/1.2.2/css (added)
-
tags/1.2.2/css/admin.css (added)
-
tags/1.2.2/css/front.css (added)
-
tags/1.2.2/incs (added)
-
tags/1.2.2/incs/admin.php (added)
-
tags/1.2.2/incs/bbpress-modtools.php (added)
-
tags/1.2.2/incs/bbpress.php (added)
-
tags/1.2.2/incs/moderation.php (added)
-
tags/1.2.2/incs/notifications.php (added)
-
tags/1.2.2/incs/report.php (added)
-
tags/1.2.2/incs/scripts.php (added)
-
tags/1.2.2/incs/settings.php (added)
-
tags/1.2.2/incs/styles.php (added)
-
tags/1.2.2/incs/users.php (added)
-
tags/1.2.2/js (added)
-
tags/1.2.2/js/report-post.js (added)
-
tags/1.2.2/moderation-tools-bbpress.php (added)
-
tags/1.2.2/readme.txt (added)
-
trunk/incs/moderation.php (modified) (4 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
r1917027 r2004990 190 190 191 191 } 192 192 193 193 /** 194 194 * Handle moderator actions … … 211 211 212 212 $post = get_post( $post_id ); 213 213 214 214 if ( empty( $post ) ) { 215 215 return; … … 234 234 235 235 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 ); 237 237 } else if ( 'reply' == $post->post_type ) { 238 238 $topic_id = bbp_get_reply_topic_id( $post->ID ); 239 239 $forum_id = bbp_get_topic_forum_id( $topic_id ); 240 $reply_to = (int) get_post_meta( $post->ID, '_bbp_reply_to', true ); 240 241 241 242 $bbp_reply_count = get_post_meta( $topic_id, '_bbp_reply_count', true ); … … 245 246 246 247 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 ); 248 249 249 250 // If this isn't the last reply, reset topic freshness to previous state -
moderation-tools-for-bbpress/trunk/moderation-tools-bbpress.php
r1917027 r2004990 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. 16 Version: 1.2.2 7 7 Author URI: https://www.digitalarm.co.uk 8 8 */ -
moderation-tools-for-bbpress/trunk/readme.txt
r1917027 r2004990 4 4 Requires at least: 4.0 5 5 Tested up to: 4.9.7 6 Stable tag: 1.2. 16 Stable tag: 1.2.2 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.2 = 59 * Add all arguments to bbp_new_topic and bbp_new_reply 57 60 58 61 = 1.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.