Changeset 21376 for trunk/wp-includes/pluggable.php
- Timestamp:
- 07/31/2012 05:45:38 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r20691 r21376 134 134 */ 135 135 function get_user_by( $field, $value ) { 136 if ( 'id' === $field && (int) $value && get_current_user_id() === (int) $value ) 137 return wp_get_current_user(); 138 136 139 $userdata = WP_User::get_data_by( $field, $value ); 137 140
Note: See TracChangeset
for help on using the changeset viewer.