Changeset 47808 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 05/16/2020 06:40:52 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r47739 r47808 133 133 } 134 134 135 $user->comment_shortcuts = isset( $_POST['comment_shortcuts'] ) && 'true' == $_POST['comment_shortcuts'] ? 'true' : '';135 $user->comment_shortcuts = isset( $_POST['comment_shortcuts'] ) && 'true' === $_POST['comment_shortcuts'] ? 'true' : ''; 136 136 137 137 $user->use_ssl = 0; … … 143 143 144 144 /* checking that username has been typed */ 145 if ( '' == $user->user_login ) {145 if ( '' === $user->user_login ) { 146 146 $errors->add( 'user_login', __( '<strong>Error</strong>: Please enter a username.' ) ); 147 147 } … … 475 475 476 476 // get_user_setting() = JS-saved UI setting. Else no-js-fallback code. 477 if ( 'hide' == get_user_setting( 'default_password_nag' ) || isset( $_GET['default_password_nag'] ) && '0' == $_GET['default_password_nag'] ) { 477 if ( 'hide' === get_user_setting( 'default_password_nag' ) 478 || isset( $_GET['default_password_nag'] ) && '0' == $_GET['default_password_nag'] 479 ) { 478 480 delete_user_setting( 'default_password_nag' ); 479 481 update_user_option( $user_ID, 'default_password_nag', false, true ); … … 510 512 global $pagenow; 511 513 // Short-circuit it. 512 if ( 'profile.php' == $pagenow || ! get_user_option( 'default_password_nag' ) ) {514 if ( 'profile.php' === $pagenow || ! get_user_option( 'default_password_nag' ) ) { 513 515 return; 514 516 }
Note: See TracChangeset
for help on using the changeset viewer.