Make WordPress Core


Ignore:
Timestamp:
09/24/2013 06:13:18 PM (11 years ago)
Author:
nacin
Message:

Introduce wp_get_user_contact_methods() as a public version of _wp_get_user_contactmethods.

props johnnyb.
fixes #24273.

File:
1 edited

Legend:

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

    r25204 r25606  
    8686        $user->description = trim( $_POST['description'] );
    8787
    88     foreach ( _wp_get_user_contactmethods( $user ) as $method => $name ) {
     88    foreach ( wp_get_user_contact_methods( $user ) as $method => $name ) {
    8989        if ( isset( $_POST[$method] ))
    9090            $user->$method = sanitize_text_field( $_POST[$method] );
Note: See TracChangeset for help on using the changeset viewer.