Changeset 53818 for trunk/src/wp-includes/user.php
- Timestamp:
- 08/03/2022 02:34:58 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/user.php
r53501 r53818 1851 1851 wp_cache_add( $user->ID, $user, 'users' ); 1852 1852 wp_cache_add( $user->user_login, $user->ID, 'userlogins' ); 1853 wp_cache_add( $user->user_email, $user->ID, 'useremail' );1854 1853 wp_cache_add( $user->user_nicename, $user->ID, 'userslugs' ); 1854 1855 if ( ! empty( $user->user_email ) ) { 1856 wp_cache_add( $user->user_email, $user->ID, 'useremail' ); 1857 } 1855 1858 } 1856 1859 … … 1879 1882 wp_cache_delete( $user->ID, 'users' ); 1880 1883 wp_cache_delete( $user->user_login, 'userlogins' ); 1881 wp_cache_delete( $user->user_email, 'useremail' );1882 1884 wp_cache_delete( $user->user_nicename, 'userslugs' ); 1885 1886 if ( ! empty( $user->user_email ) ) { 1887 wp_cache_delete( $user->user_email, 'useremail' ); 1888 } 1883 1889 1884 1890 /**
Note: See TracChangeset
for help on using the changeset viewer.