Changeset 5293 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
- Timestamp:
- 04/09/2017 05:47:32 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
r5292 r5293 45 45 add_filter( 'bbp_get_reply_approve_link', array( $this, 'convert_toggles_to_actions' ), 10, 3 ); 46 46 47 // Store moderator's username on approve/unapprove actions.47 // Store moderator's username on Approve/Unapprove actions. 48 48 add_action( 'bbp_approved_topic', array( $this, 'store_moderator_username' ) ); 49 49 add_action( 'bbp_approved_reply', array( $this, 'store_moderator_username' ) ); … … 289 289 if ( $post_id ) { 290 290 update_post_meta( $post->ID, self::ARCHIVED_META, $post->post_status ); 291 update_post_meta( $post->ID, self::MODERATOR_META, wp_get_current_user()->user_nicename);291 $this->store_moderator_username( $post->ID ); 292 292 293 293 if ( bbp_is_reply( $post->ID ) ) { … … 323 323 if ( $post_id ) { 324 324 delete_post_meta( $post->ID, self::ARCHIVED_META ); 325 update_post_meta( $post->ID, self::MODERATOR_META, wp_get_current_user()->user_nicename);325 $this->store_moderator_username( $post->ID ); 326 326 327 327 if ( bbp_is_reply( $post->ID ) ) { … … 579 579 580 580 /** 581 * Store moderator's username on approve/unapprove actions.581 * Store moderator's username on Approve/Unapprove and Archive/Unarchive actions. 582 582 * 583 583 * @param int $post_id Post ID.
Note: See TracChangeset
for help on using the changeset viewer.