Ticket #12642: 12642.patch
File 12642.patch, 1.3 KB (added by , 14 years ago) |
---|
-
wp-includes/deprecated.php
2440 2440 * @see get_the_author_meta() 2441 2441 */ 2442 2442 function 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()' ); 2444 2444 if ( $user ) { 2445 2445 $user = get_user_by( 'login', $user ); 2446 2446 $user = $user->ID; 2447 2447 } 2448 2448 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 */ 2459 function get_usernumposts( $userid ) { 2460 _deprecated_function( __FUNCTION__, '3.0', 'count_user_posts()' ); 2461 return count_user_posts( $userid ); 2449 2462 } 2463 No newline at end of file -
wp-includes/user.php
142 142 /** 143 143 * Number of posts user has written. 144 144 * 145 * @since 0.71145 * @since 3.0.0 146 146 * @uses $wpdb WordPress database object for queries. 147 147 * 148 148 * @param int $userid User ID.