Changeset 6674
- Timestamp:
- 02/17/2018 11:52:49 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/locale-detection/class-detector.php
r6673 r6674 48 48 49 49 /** 50 * Sets the locale property based on the following parameters:50 * Sets the locale property and cookie based on the following parameters: 51 51 * 1. $_GET['locale'] 52 52 * 2. $_COOKIE['wporg_locale'] … … 66 66 } else { 67 67 $this->locale = $this->guess_locale() ?: $this->locale; 68 } 69 70 if ( empty( $_COOKIE['wporg_locale'] ) || $this->locale !== $_COOKIE['wporg_locale'] ) { 68 71 setcookie( 'wporg_locale', $this->locale, time() + YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN, is_ssl() ); 69 72 }
Note: See TracChangeset
for help on using the changeset viewer.