Changeset 53490
- Timestamp:
- 06/12/2022 11:09:21 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/option.php
r53317 r53490 1110 1110 // The cookie is not set in the current browser or the saved value is newer. 1111 1111 $secure = ( 'https' === parse_url( admin_url(), PHP_URL_SCHEME ) ); 1112 setcookie( 'wp-settings-' . $user_id, $settings, time() + YEAR_IN_SECONDS, SITECOOKIEPATH, null, $secure );1113 setcookie( 'wp-settings-time-' . $user_id, time(), time() + YEAR_IN_SECONDS, SITECOOKIEPATH, null, $secure );1112 setcookie( 'wp-settings-' . $user_id, $settings, time() + YEAR_IN_SECONDS, SITECOOKIEPATH, '', $secure ); 1113 setcookie( 'wp-settings-time-' . $user_id, time(), time() + YEAR_IN_SECONDS, SITECOOKIEPATH, '', $secure ); 1114 1114 $_COOKIE[ 'wp-settings-' . $user_id ] = $settings; 1115 1115 }
Note: See TracChangeset
for help on using the changeset viewer.