Changeset 1917027
- Timestamp:
- 07/30/2018 06:27:16 PM (8 years ago)
- Location:
- moderation-tools-for-bbpress
- Files:
-
- 20 added
- 3 edited
-
tags/1.2.1 (added)
-
tags/1.2.1/README.md (added)
-
tags/1.2.1/css (added)
-
tags/1.2.1/css/admin.css (added)
-
tags/1.2.1/css/front.css (added)
-
tags/1.2.1/incs (added)
-
tags/1.2.1/incs/admin.php (added)
-
tags/1.2.1/incs/bbpress-modtools.php (added)
-
tags/1.2.1/incs/bbpress.php (added)
-
tags/1.2.1/incs/moderation.php (added)
-
tags/1.2.1/incs/notifications.php (added)
-
tags/1.2.1/incs/report.php (added)
-
tags/1.2.1/incs/scripts.php (added)
-
tags/1.2.1/incs/settings.php (added)
-
tags/1.2.1/incs/styles.php (added)
-
tags/1.2.1/incs/users.php (added)
-
tags/1.2.1/js (added)
-
tags/1.2.1/js/report-post.js (added)
-
tags/1.2.1/moderation-tools-bbpress.php (added)
-
tags/1.2.1/readme.txt (added)
-
trunk/incs/moderation.php (modified) (1 diff)
-
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
r1914199 r1917027 239 239 $forum_id = bbp_get_topic_forum_id( $topic_id ); 240 240 241 $bbp_reply_count = get_post_meta( $topic_id, '_bbp_reply_count', true ); 242 $bbp_last_reply_id = get_post_meta( $topic_id, '_bbp_last_reply_id', true ); 243 $bbp_last_active_id = get_post_meta( $topic_id, '_bbp_last_active_id', true ); 244 $bbp_last_active_time = get_post_meta( $topic_id, '_bbp_last_active_time', time ); 245 241 246 do_action( 'bbp_approved_reply', $post->ID ); 242 247 do_action( 'bbp_new_reply', $post->ID, $topic_id, $forum_id ); 248 249 // If this isn't the last reply, reset topic freshness to previous state 250 if ( $post->menu_order != $bbp_reply_count ) { 251 update_post_meta( $topic_id, '_bbp_last_reply_id', $bbp_last_reply_id ); 252 update_post_meta( $topic_id, '_bbp_last_active_id', $bbp_last_active_id ); 253 update_post_meta( $topic_id, '_bbp_last_active_time', $bbp_last_active_time ); 254 } 243 255 } 244 256 -
moderation-tools-for-bbpress/trunk/moderation-tools-bbpress.php
r1914199 r1917027 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. 06 Version: 1.2.1 7 7 Author URI: https://www.digitalarm.co.uk 8 8 */ -
moderation-tools-for-bbpress/trunk/readme.txt
r1914199 r1917027 4 4 Requires at least: 4.0 5 5 Tested up to: 4.9.7 6 Stable tag: 1.2. 06 Stable tag: 1.2.1 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.1 = 59 * Updated reply approval so topic freshness is only changed if the reply is the latest 57 60 58 61 = 1.2.0 =
Note: See TracChangeset
for help on using the changeset viewer.