Changeset 15896 for trunk/wp-admin/includes/user.php
- Timestamp:
- 10/21/2010 03:42:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/user.php
r15799 r15896 111 111 $user->description = trim( $_POST['description'] ); 112 112 113 foreach ( _wp_get_user_contactmethods( ) as $method => $name ) {113 foreach ( _wp_get_user_contactmethods( $user ) as $method => $name ) { 114 114 if ( isset( $_POST[$method] )) 115 115 $user->$method = sanitize_text_field( $_POST[$method] ); … … 225 225 $user = new WP_User( $user_id ); 226 226 227 $user_contactmethods = _wp_get_user_contactmethods( );227 $user_contactmethods = _wp_get_user_contactmethods( $user ); 228 228 foreach ($user_contactmethods as $method => $name) { 229 229 if ( empty( $user->{$method} ) )
Note: See TracChangeset
for help on using the changeset viewer.