Make WordPress Core

Ticket #37379: 37379.patch

File 37379.patch, 591 bytes (added by deremohan, 9 years ago)

WP_User $profileuser object passed to filter.

  • src/wp-admin/user-edit.php

     
    475475                         * @since 4.4.0
    476476                         *
    477477                         * @param string $description The description that will be printed.
     478                         * @param WP_User $profileuser User object for the current user to edit.
    478479                         */
    479                         echo apply_filters( 'user_profile_picture_description', $description );
     480                        echo apply_filters( 'user_profile_picture_description', $description, $profileuser );
    480481                ?></p>
    481482        </td>
    482483</tr>