| @@ -49,9 +49,11 @@ | ||
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | 52 | function bogo_set_accessible_locales( $profileuser ) { |
| 53 | - $available_languages = bogo_available_languages( 'orderby=value' ); | |
| 53 | + $available_languages = bogo_available_languages( array( | |
| 54 | + 'exclude_enus_if_inactive' => true, | |
| 55 | + 'orderby' => 'value' ) ); | |
| 54 | 56 | $accessible_locales = bogo_get_user_accessible_locales( $profileuser->ID ); |
| 55 | 57 | |
| 56 | 58 | if ( empty( $accessible_locales ) ) { |
| 57 | 59 | $accessible_locales = array_keys( $available_languages ); |
| @@ -88,8 +90,9 @@ | ||
| 88 | 90 | } |
| 89 | 91 | |
| 90 | 92 | function bogo_select_own_locale( $profileuser ) { |
| 91 | 93 | $available_languages = bogo_available_languages( array( |
| 94 | + 'exclude_enus_if_inactive' => true, | |
| 92 | 95 | 'orderby' => 'value', |
| 93 | 96 | 'current_user_can_access' => true ) ); |
| 94 | 97 | |
| 95 | 98 | $selected = bogo_get_user_locale( $profileuser->ID ); |
| @@ -109,6 +112,4 @@ | ||
| 109 | 112 | </tr> |
| 110 | 113 | |
| 111 | 114 | <?php |
| 112 | 115 | } |
| 113 | - | |
| 114 | -?> | |