Making WordPress.org


Ignore:
Timestamp:
04/09/2017 10:47:29 PM (6 years ago)
Author:
coffee2code
Message:

Support Forums: Search authors and contributors by user_nicename of user instead of user_login.

Fixes checks in user_can_resolve() and user_can_stick().

See #2701.
Fixes #2709.

File:
1 edited

Legend:

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

    r5286 r5301  
    354354        }
    355355        if (
    356             ( ! empty( $this->authors ) && in_array( $user->user_login, $this->authors ) )
     356            ( ! empty( $this->authors ) && in_array( $user->user_nicename, $this->authors ) )
    357357        ||
    358             ( ! empty( $this->contributors ) && in_array( $user->user_login, $this->contributors ) )
     358            ( ! empty( $this->contributors ) && in_array( $user->user_nicename, $this->contributors ) )
    359359        ) {
    360360            $retval = true;
Note: See TracChangeset for help on using the changeset viewer.