WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #43985, comment 38


Ignore:
Timestamp:
08/03/2018 10:56:53 PM (2 years ago)
Author:
earnjam
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #43985, comment 38

    initial v1  
    33{{{
    44#!php
    5 $current_locale = is_admin() ? get_user_locale() : get_locale();
    6 if ( $current_locale === $locale ) {
    7         return false;
    8 }
     5public function switch_to_locale( $locale ) {
     6        $current_locale = is_admin() ? get_user_locale() : get_locale();
     7        if ( $current_locale === $locale ) {
     8                return false;
     9        }
    910}}}
    1011