Changeset 55760 for trunk/src/wp-includes/l10n.php
- Timestamp:
- 05/16/2023 02:16:39 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r55703 r55760 150 150 151 151 if ( ! empty( $_GET['wp_lang'] ) ) { 152 $wp_lang = sanitize_ text_field( $_GET['wp_lang']);152 $wp_lang = sanitize_locale_name( wp_unslash( $_GET['wp_lang'] ) ); 153 153 } elseif ( ! empty( $_COOKIE['wp_lang'] ) ) { 154 $wp_lang = sanitize_ text_field( $_COOKIE['wp_lang']);154 $wp_lang = sanitize_locale_name( wp_unslash( $_COOKIE['wp_lang'] ) ); 155 155 } 156 156
Note: See TracChangeset
for help on using the changeset viewer.