Changeset 5002
- Timestamp:
- 02/24/2017 07:31:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-moderation/inc/class-plugin.php
r4873 r5002 19 19 // Back-compat user option name. 20 20 const USER_META = 'is_bozo'; 21 22 // Meta key to store moderator's username on flag/unflag actions. 23 const MODERATOR_META = '_wporg_bbp_moderator'; 21 24 22 25 /** … … 229 232 if ( ! $this->is_user_flagged( $user_id ) ) { 230 233 update_user_meta( $user_id, self::USER_META, true ); 234 update_user_meta( $user_id, self::MODERATOR_META, wp_get_current_user()->user_nicename ); 231 235 } 232 236 do_action( 'wporg_bbp_flag_user', $user_id ); … … 242 246 if ( $this->is_user_flagged( $user_id ) ) { 243 247 delete_user_meta( $user_id, self::USER_META ); 248 update_user_meta( $user_id, self::MODERATOR_META, wp_get_current_user()->user_nicename ); 244 249 } 245 250 do_action( 'wporg_bbp_unflag_user', $user_id );
Note: See TracChangeset
for help on using the changeset viewer.