WordPress.org

Make WordPress Core

Changeset 13761


Ignore:
Timestamp:
03/19/2010 01:11:21 AM (8 years ago)
Author:
nacin
Message:

Restore accidental removal of get_usernumposts(). This function is now deprecated in favor of count_user_posts() for naming consistency. fixes #12642 props Viper007Bond.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

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

    r13464 r13761  
    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 );
     
    24482448    return get_the_author_meta( $field, $user );
    24492449}
     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 );
     2462}
  • trunk/wp-includes/user.php

    r13725 r13761  
    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 *
Note: See TracChangeset for help on using the changeset viewer.