Changeset 6673
- Timestamp:
- 02/17/2018 11:46:56 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
r6644 r6673 44 44 $this->active_locales = $this->get_active_locales(); 45 45 46 $this->set_locale(); 47 } 48 49 /** 50 * Sets the locale property based on the following parameters: 51 * 1. $_GET['locale'] 52 * 2. $_COOKIE['wporg_locale'] 53 * 3. $_SERVER['HTTP_ACCEPT_LANGUAGE'] 54 */ 55 private function set_locale() { 46 56 if ( ! empty( $_GET['locale'] ) ) { 47 57 $get_locale = $this->sanitize_locale( $_GET['locale'] );
Note: See TracChangeset
for help on using the changeset viewer.