WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/27/2010 06:11:45 PM (11 years ago)
Author:
nacin
Message:

Deprecate get_profile() for get_the_author_meta(). fixes #10695, props scribu.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r13425 r13464  
    24312431        remove_action( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+
    24322432}
     2433
     2434/**
     2435 * Retrieve user data based on field.
     2436 *
     2437 * @since 1.5.0
     2438 * @deprecated 3.0.0
     2439 * @deprecated Use get_the_author_meta()
     2440 * @see get_the_author_meta()
     2441 */
     2442function get_profile( $field, $user = false ) {
     2443    _deprecated_function(__FUNCTION__, '3.0', 'get_the_author_meta()' );
     2444    if ( $user ) {
     2445        $user = get_user_by( 'login', $user );
     2446        $user = $user->ID;
     2447    }
     2448    return get_the_author_meta( $field, $user );
     2449}
Note: See TracChangeset for help on using the changeset viewer.