diff --git a/src/wp-includes/option.php b/src/wp-includes/option.php
index 9952514733..ea9ff56d4e 100644
|
a
|
b
|
function wp_user_settings() {
|
| 1115 | 1115 | $settings = (string) get_user_option( 'user-settings', $user_id ); |
| 1116 | 1116 | |
| 1117 | 1117 | if ( isset( $_COOKIE[ 'wp-settings-' . $user_id ] ) ) { |
| 1118 | | $cookie = preg_replace( '/[^A-Za-z0-9=&_]/', '', $_COOKIE[ 'wp-settings-' . $user_id ] ); |
| | 1118 | $cookie = preg_replace( '/[^A-Za-z0-9=&_]/', '', sanitize_text_field( $_COOKIE[ 'wp-settings-' . $user_id ] ) ); |
| 1119 | 1119 | |
| 1120 | 1120 | // No change or both empty. |
| 1121 | 1121 | if ( $cookie == $settings ) { |