WordPress.org

Make WordPress Core

Ticket #12642: 12642.patch

File 12642.patch, 1.3 KB (added by Viper007Bond, 8 years ago)
  • wp-includes/deprecated.php

     
    24402440 * @see get_the_author_meta()
    24412441 */
    24422442function get_profile( $field, $user = false ) {
    2443         _deprecated_function(__FUNCTION__, '3.0', 'get_the_author_meta()' );
     2443        _deprecated_function( __FUNCTION__, '3.0', 'get_the_author_meta()' );
    24442444        if ( $user ) {
    24452445                $user = get_user_by( 'login', $user );
    24462446                $user = $user->ID;
    24472447        }
    24482448        return get_the_author_meta( $field, $user );
     2449}
     2450
     2451/**
     2452 * Number of posts user has written.
     2453 *
     2454 * @since 0.71
     2455 * @deprecated 3.0.0
     2456 * @deprecated Use count_user_posts()
     2457 * @see count_user_posts()
     2458 */
     2459function get_usernumposts( $userid ) {
     2460        _deprecated_function( __FUNCTION__, '3.0', 'count_user_posts()' );
     2461        return count_user_posts( $userid );
    24492462}
     2463 No newline at end of file
  • wp-includes/user.php

     
    142142/**
    143143 * Number of posts user has written.
    144144 *
    145  * @since 0.71
     145 * @since 3.0.0
    146146 * @uses $wpdb WordPress database object for queries.
    147147 *
    148148 * @param int $userid User ID.