Making WordPress.org

Changeset 5111


Ignore:
Timestamp:
03/07/2017 03:54:12 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Forums: In Moderators::archive_post() and ::unarchive_post(), store user_nicename instead of user_login, for consistency with [5002].

See #2474, #2493.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-moderators.php

    r5110 r5111  
    269269            if ( $post_id ) {
    270270                update_post_meta( $post->ID, self::ARCHIVED_META, $post->post_status );
    271                 update_post_meta( $post->ID, self::MODERATOR_META, wp_get_current_user()->user_login );
     271                update_post_meta( $post->ID, self::MODERATOR_META, wp_get_current_user()->user_nicename );
    272272
    273273                if ( bbp_is_reply( $post->ID ) ) {
     
    303303            if ( $post_id ) {
    304304                delete_post_meta( $post->ID, self::ARCHIVED_META );
    305                 update_post_meta( $post->ID, self::MODERATOR_META, wp_get_current_user()->user_login );
     305                update_post_meta( $post->ID, self::MODERATOR_META, wp_get_current_user()->user_nicename );
    306306
    307307                if ( bbp_is_reply( $post->ID ) ) {
Note: See TracChangeset for help on using the changeset viewer.