wp/wp-includes/class-wp-locale-switcher.php
changeset 16 a86126ab1dd4
parent 9 177826044cd9
child 21 48c4eec2b7e6
equal deleted inserted replaced
15:3d4e9c994f10 16:a86126ab1dd4
   211 	 * Loads the translations, changes the global `$wp_locale` object and updates
   211 	 * Loads the translations, changes the global `$wp_locale` object and updates
   212 	 * all post type labels.
   212 	 * all post type labels.
   213 	 *
   213 	 *
   214 	 * @since 4.7.0
   214 	 * @since 4.7.0
   215 	 *
   215 	 *
   216 	 * @global WP_Locale $wp_locale The WordPress date and time locale object.
   216 	 * @global WP_Locale $wp_locale WordPress date and time locale object.
   217 	 *
   217 	 *
   218 	 * @param string $locale The locale to change to.
   218 	 * @param string $locale The locale to change to.
   219 	 */
   219 	 */
   220 	private function change_locale( $locale ) {
   220 	private function change_locale( $locale ) {
   221 		// Reset translation availability information.
   221 		// Reset translation availability information.