Making WordPress.org

Changeset 10282


Ignore:
Timestamp:
09/23/2020 11:50:59 PM (4 years ago)
Author:
dd32
Message:

Plugin Directory: Review Tools: Fix the many-plugins-for-new-users warning, fixing a PHP warning.

See #5356.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/admin/metabox/class-author-card.php

    r10268 r10282  
    202202
    203203            // Include any warning flags.
    204             $warning_flags = self::get_user_flags( $user->ID );
     204            $warning_flags = self::get_user_flags( $user->ID, $author_plugins );
    205205            if ( $warning_flags ) {
    206206                echo '<strong>' . __( 'Warning Flags:', 'wporg-plugins' ) . '</strong>';
     
    327327    }
    328328
    329     protected static function get_user_flags( $user_id ) {
     329    protected static function get_user_flags( $user_id, $author_plugins ) {
    330330        $author  = get_user_by( 'id', $user_id );
    331331        $flagged = array(
Note: See TracChangeset for help on using the changeset viewer.