Changeset 50790
- Timestamp:
- 04/26/2021 01:02:34 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r50781 r50790 92 92 * @since 2.8.0 93 93 * @since 4.4.0 Added 'ID' as an alias of 'id' for the `$field` parameter. 94 94 95 * 95 96 * @param string $field The field to retrieve the user with. id | ID | slug | email | login. … … 98 99 */ 99 100 function get_user_by( $field, $value ) { 101 102 100 103 $userdata = WP_User::get_data_by( $field, $value ); 101 104 102 105 if ( ! $userdata ) { 103 106 return false; 107 108 109 110 104 111 } 105 112 -
trunk/src/wp-includes/user.php
r50641 r50790 1562 1562 * @since 3.0.0 1563 1563 * @since 4.4.0 'clean_user_cache' action was added. 1564 1565 1566 1564 1567 * 1565 1568 * @param WP_User|int $user User object or ID to be cleaned from the cache 1566 1569 */ 1567 1570 function clean_user_cache( $user ) { 1571 1572 1568 1573 if ( is_numeric( $user ) ) { 1569 1574 $user = new WP_User( $user ); … … 1588 1593 */ 1589 1594 do_action( 'clean_user_cache', $user->ID, $user ); 1595 1596 1597 1598 1599 1600 1601 1590 1602 } 1591 1603 -
trunk/tests/phpunit/tests/pluggable.php
r47938 r50790 325 325 } 326 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 327 342 }
Note: See TracChangeset
for help on using the changeset viewer.