Changeset 4987 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
- Timestamp:
- 02/22/2017 08:11:40 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php
r4232 r4987 7 7 const ARCHIVED = 'archived'; 8 8 const ARCHIVED_META = '_wporg_bbp_unarchived_post_status'; 9 const MODERATOR_META = '_wporg_bbp_moderator'; 9 10 const DEFAULT_STATUS = 'publish'; 10 11 const VIEWS = array( 'archived', 'pending', 'spam' ); … … 249 250 if ( $post_id ) { 250 251 update_post_meta( $post->ID, self::ARCHIVED_META, $post->post_status ); 252 update_post_meta( $post->ID, self::MODERATOR_META, wp_get_current_user()->user_login ); 251 253 return true; 252 254 } … … 277 279 if ( $post_id ) { 278 280 delete_post_meta( $post->ID, self::ARCHIVED_META ); 281 update_post_meta( $post->ID, self::MODERATOR_META, wp_get_current_user()->user_login ); 279 282 return true; 280 283 }
Note: See TracChangeset
for help on using the changeset viewer.