Changeset 55224 for trunk/src/wp-includes/class-wp-locale-switcher.php
- Timestamp:
- 02/04/2023 08:45:36 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-locale-switcher.php
r55161 r55224 93 93 * @since 6.2.0 The `$user_id` parameter was added. 94 94 * 95 * @param string $locale The new locale.96 * @param null|int $user_id User ID for context if available.95 * @param string $locale The new locale. 96 * @param false|int $user_id User ID for context if available. 97 97 */ 98 98 do_action( 'switch_locale', $locale, $user_id ); … … 187 187 * @return string|false Locale if the locale has been switched, false otherwise. 188 188 */ 189 public function get_ current_locale() {189 public function get_switched_locale() { 190 190 $entry = end( $this->stack ); 191 191 … … 204 204 * @return int|false User ID if set and if the locale has been switched, false otherwise. 205 205 */ 206 public function get_ current_user_id() {206 public function get_switched_user_id() { 207 207 $entry = end( $this->stack ); 208 208 … … 223 223 */ 224 224 public function filter_locale( $locale ) { 225 $switched_locale = $this->get_ current_locale();225 $switched_locale = $this->get_switched_locale(); 226 226 227 227 if ( $switched_locale ) {
Note: See TracChangeset
for help on using the changeset viewer.