IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php
a
|
b
|
|
1410 | 1410 | * @param string $value The proposed new site admin email address. |
1411 | 1411 | */ |
1412 | 1412 | function update_option_new_admin_email( $old_value, $value ) { |
1413 | | if ( get_option( 'admin_email' ) === $value || ! is_email( $value ) ) { |
| 1413 | if ( 0 === strcasecmp( get_option( 'admin_email' ), $value ) || ! is_email( $value ) ) { |
1414 | 1414 | return; |
1415 | 1415 | } |
1416 | 1416 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-admin/includes/class-wp-screen.php b/src/wp-admin/includes/class-wp-screen.php
a
|
b
|
|
1126 | 1126 | update_user_meta( get_current_user_id(), 'show_welcome_panel', $welcome_checked ); |
1127 | 1127 | } else { |
1128 | 1128 | $welcome_checked = (int) get_user_meta( get_current_user_id(), 'show_welcome_panel', true ); |
1129 | | if ( 2 === $welcome_checked && wp_get_current_user()->user_email !== get_option( 'admin_email' ) ) { |
| 1129 | if ( 2 === $welcome_checked && 0 !== strcasecmp( wp_get_current_user()->user_email, get_option( 'admin_email' ) ) ) { |
1130 | 1130 | $welcome_checked = false; |
1131 | 1131 | } |
1132 | 1132 | } |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php
a
|
b
|
|
2802 | 2802 | * @param string $value The proposed new network admin email address. |
2803 | 2803 | */ |
2804 | 2804 | function update_network_option_new_admin_email( $old_value, $value ) { |
2805 | | if ( get_site_option( 'admin_email' ) === $value || ! is_email( $value ) ) { |
| 2805 | if ( 0 === strcasecmp( get_site_option( 'admin_email' ), $value ) || ! is_email( $value ) ) { |
2806 | 2806 | return; |
2807 | 2807 | } |
2808 | 2808 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-admin/includes/class-wp-automatic-updater.php b/src/wp-admin/includes/class-wp-automatic-updater.php
a
|
b
|
|
258 | 258 | |
259 | 259 | // Don't notify if we've already notified the same email address of the same version. |
260 | 260 | if ( $notified |
261 | | && get_site_option( 'admin_email' ) === $notified['email'] |
| 261 | && 0 === strcasecmp( get_site_option( 'admin_email' ), $notified['email'] ) |
262 | 262 | && $notified['version'] === $item->current |
263 | 263 | ) { |
264 | 264 | return false; |
… |
… |
|
636 | 636 | // Don't notify if we've already notified the same email address of the same version of the same notification type. |
637 | 637 | if ( $notified |
638 | 638 | && 'fail' === $notified['type'] |
639 | | && get_site_option( 'admin_email' ) === $notified['email'] |
| 639 | && 0 === strcasecmp( get_site_option( 'admin_email' ), $notified['email'] ) |
640 | 640 | && $notified['version'] === $core_update->current |
641 | 641 | ) { |
642 | 642 | $send = false; |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-admin/user-edit.php b/src/wp-admin/user-edit.php
a
|
b
|
|
519 | 519 | <?php endif; ?> |
520 | 520 | |
521 | 521 | <?php $new_email = get_user_meta( $current_user->ID, '_new_email', true ); ?> |
522 | | <?php if ( $new_email && $new_email['newemail'] !== $current_user->user_email && $profile_user->ID === $current_user->ID ) : ?> |
| 522 | <?php if ( $new_email && 0 !== strcasecmp( $new_email['newemail'], $current_user->user_email ) && $profile_user->ID === $current_user->ID ) : ?> |
523 | 523 | <div class="updated inline"> |
524 | 524 | <p> |
525 | 525 | <?php |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-admin/options-general.php b/src/wp-admin/options-general.php
a
|
b
|
|
114 | 114 | <p class="description" id="new-admin-email-description"><?php _e( 'This address is used for admin purposes. If you change this, an email will be sent to your new address to confirm it. <strong>The new address will not become active until confirmed.</strong>' ); ?></p> |
115 | 115 | <?php |
116 | 116 | $new_admin_email = get_option( 'new_admin_email' ); |
117 | | if ( $new_admin_email && get_option( 'admin_email' ) !== $new_admin_email ) : |
| 117 | if ( $new_admin_email && 0 !== strcasecmp( get_option( 'admin_email' ), $new_admin_email ) ) : |
118 | 118 | ?> |
119 | 119 | <div class="updated inline"> |
120 | 120 | <p> |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-admin/_index.php b/src/wp-admin/_index.php
a
|
b
|
|
175 | 175 | |
176 | 176 | $option = (int) get_user_meta( get_current_user_id(), 'show_welcome_panel', true ); |
177 | 177 | // 0 = hide, 1 = toggled to show or single site creator, 2 = multisite site owner. |
178 | | $hide = ( 0 === $option || ( 2 === $option && wp_get_current_user()->user_email !== get_option( 'admin_email' ) ) ); |
| 178 | $hide = ( 0 === $option || ( 2 === $option && 0 !== strcasecmp( wp_get_current_user()->user_email, get_option( 'admin_email' ) ) ) ); |
179 | 179 | if ( $hide ) { |
180 | 180 | $classes .= ' hidden'; |
181 | 181 | } |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
a
|
b
|
|
2332 | 2332 | } |
2333 | 2333 | |
2334 | 2334 | if ( $update ) { |
2335 | | if ( $user_email !== $old_user_data->user_email || $user_pass !== $old_user_data->user_pass ) { |
| 2335 | if ( 0 !== strcasecmp( $user_email, $old_user_data->user_email ) || $user_pass !== $old_user_data->user_pass ) { |
2336 | 2336 | $data['user_activation_key'] = ''; |
2337 | 2337 | } |
2338 | 2338 | $wpdb->update( $wpdb->users, $data, array( 'ID' => $user_id ) ); |
… |
… |
|
2531 | 2531 | $send_password_change_email = apply_filters( 'send_password_change_email', true, $user, $userdata ); |
2532 | 2532 | } |
2533 | 2533 | |
2534 | | if ( isset( $userdata['user_email'] ) && $user['user_email'] !== $userdata['user_email'] ) { |
| 2534 | if ( isset( $userdata['user_email'] ) && 0 !== strcasecmp( $user['user_email'], $userdata['user_email'] ) ) { |
2535 | 2535 | /** |
2536 | 2536 | * Filters whether to send the email change email. |
2537 | 2537 | * |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
diff --git a/src/wp-admin/network/settings.php b/src/wp-admin/network/settings.php
a
|
b
|
|
166 | 166 | </p> |
167 | 167 | <?php |
168 | 168 | $new_admin_email = get_site_option( 'new_admin_email' ); |
169 | | if ( $new_admin_email && get_site_option( 'admin_email' ) !== $new_admin_email ) : |
| 169 | if ( $new_admin_email && 0 !== strcasecmp( get_site_option( 'admin_email' ), $new_admin_email ) ) : |
170 | 170 | ?> |
171 | 171 | <div class="updated inline"> |
172 | 172 | <p> |