Changeset 59373
- Timestamp:
- 11/07/2024 11:45:40 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r58993 r59373 1701 1701 1702 1702 $last_saved = (int) get_user_option( 'user-settings-time', $user_id ); 1703 $current = isset( $_COOKIE[ 'wp-settings-time-' . $user_id ] ) ? preg_replace( '/[^0-9]/', '', $_COOKIE[ 'wp-settings-time-' . $user_id ] ) : 0; 1703 $current = 0; 1704 1705 if ( isset( $_COOKIE[ 'wp-settings-time-' . $user_id ] ) ) { 1706 $current = (int) preg_replace( '/[^0-9]/', '', $_COOKIE[ 'wp-settings-time-' . $user_id ] ); 1707 } 1704 1708 1705 1709 // The cookie is newer than the saved value. Update the user_option and leave the cookie as-is.
Note: See TracChangeset
for help on using the changeset viewer.