Make WordPress Core


Ignore:
Timestamp:
08/31/2016 09:12:29 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Users: Pass $profileuser parameter to user_profile_picture_description filter on "Edit User" screen.

Props turtlepod, deremohan.
Fixes #37379.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/user-edit.php

    r37940 r38481  
    474474             *
    475475             * @since 4.4.0
     476             * @since 4.7.0 Added the `$profileuser` parameter.
    476477             *
    477              * @param string $description The description that will be printed.
     478             * @param string  $description The description that will be printed.
     479             * @param WP_User $profileuser The current WP_User object.
    478480             */
    479             echo apply_filters( 'user_profile_picture_description', $description );
     481            echo apply_filters( 'user_profile_picture_description', $description, $profileuser );
    480482        ?></p>
    481483    </td>
Note: See TracChangeset for help on using the changeset viewer.