Changeset 11640 for sites/trunk/wordpress.org/public_html/wp-content/plugins/locale-detection/locale-detection.php
- Timestamp:
- 03/04/2022 03:47:24 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/locale-detection/locale-detection.php
r10982 r11640 24 24 $detector = new Detector(); 25 25 26 add_action( 'locale', [ $detector, 'get_locale' ] ); 26 add_filter( 'locale', [ $detector, 'get_locale' ] ); 27 add_filter( 'pre_determine_locale', [ $detector, 'get_locale' ] ); 27 28 } 28 add_action( 'plugins_loaded', __NAMESPACE__ . '\init', 1 ); 29 30 // Override the locale ASAP. 31 init();
Note: See TracChangeset
for help on using the changeset viewer.