Changeset 47219 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 02/09/2020 04:52:28 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/user.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r47156 r47219 71 71 if ( 72 72 ( is_multisite() && current_user_can( 'manage_network_users' ) ) || 73 $user_id !== get_current_user_id()||73 get_current_user_id() !== $user_id || 74 74 ( $potential_role && $potential_role->has_cap( 'promote_users' ) ) 75 75 ) { … … 82 82 } 83 83 if ( isset( $_POST['url'] ) ) { 84 if ( empty( $_POST['url'] ) || $_POST['url'] == 'http://') {84 if ( empty( $_POST['url'] ) || 'http://' === $_POST['url'] ) { 85 85 $user->user_url = ''; 86 86 } else { … … 144 144 145 145 /* checking that username has been typed */ 146 if ( $user->user_login == '') {146 if ( '' == $user->user_login ) { 147 147 $errors->add( 'user_login', __( '<strong>Error</strong>: Please enter a username.' ) ); 148 148 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)