Changeset 55774 for branches/5.9/src/wp-includes/l10n.php
- Timestamp:
- 05/16/2023 03:21:39 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9/src/wp-includes/l10n.php
r52394 r55774 148 148 149 149 if ( ! empty( $_GET['wp_lang'] ) ) { 150 $wp_lang = sanitize_ text_field( $_GET['wp_lang']);150 $wp_lang = sanitize_locale_name( wp_unslash( $_GET['wp_lang'] ) ); 151 151 } elseif ( ! empty( $_COOKIE['wp_lang'] ) ) { 152 $wp_lang = sanitize_ text_field( $_COOKIE['wp_lang']);152 $wp_lang = sanitize_locale_name( wp_unslash( $_COOKIE['wp_lang'] ) ); 153 153 } 154 154
Note: See TracChangeset
for help on using the changeset viewer.