Changeset 54946 for trunk/src/wp-includes/ms-deprecated.php
- Timestamp:
- 12/07/2022 02:30:17 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-deprecated.php
r54283 r54946 335 335 * @see get_user_by() 336 336 * 337 * @param string $ stringEither an email address or a login.337 * @param string $email_or_login Either an email address or a login. 338 338 * @return int 339 339 */ 340 function get_user_id_from_string( $ string) {340 function get_user_id_from_string( $email_or_login ) { 341 341 _deprecated_function( __FUNCTION__, '3.6.0', 'get_user_by()' ); 342 342 343 if ( is_email( $ string) )344 $user = get_user_by( 'email', $ string);345 elseif ( is_numeric( $ string) )346 return $ string;343 if ( is_email( $email_or_login ) ) 344 $user = get_user_by( 'email', $email_or_login ); 345 elseif ( is_numeric( $email_or_login ) ) 346 return $email_or_login; 347 347 else 348 $user = get_user_by( 'login', $ string);348 $user = get_user_by( 'login', $email_or_login ); 349 349 350 350 if ( $user )
Note: See TracChangeset
for help on using the changeset viewer.