WordPress.org

Make WordPress Core

Ticket #24273: 24273-user.php.diff

File 24273-user.php.diff, 583 bytes (added by johnnyb, 5 years ago)

Public wrapper for private method.

  • wp-includes/user.php

     
    15451545        }
    15461546        return apply_filters( 'user_contactmethods', $user_contactmethods, $user );
    15471547}
     1548
     1549/**
     1550 * A public getter for the contact methods.
     1551 *
     1552 * @param object $user User data object (optional).
     1553 * @return array $user_contactmethods Array of contact methods and their labels.
     1554 */
     1555function wp_get_user_contactmethods($user = null) {
     1556        return _wp_get_user_contactmethods($user);
     1557}