PluginProbe
Bogo / 2.6
Bogo v2.6
3.9.3 trunk 1.0 1.1 2.0 2.0.1 2.1 2.1.1 2.1.2 2.1.3 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5 2.6 2.6.1 2.7 2.8 2.8.1 2.9 3.0 3.0.1 All 52 releases
← All changes | admin/includes/user.php +4 -3 2.42.6 View file →
@@ -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 -?>