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 | includes/user.php +2 -6 2.82.6 View file →
@@ -41,21 +41,17 @@
41 41
42 42 add_action( 'admin_init', 'bogo_switch_user_locale' );
43 43
44 44 function bogo_switch_user_locale() {
45 - if ( empty( $_REQUEST['action'] )
46 - || 'bogo-switch-locale' != $_REQUEST['action'] ) {
45 + if ( empty( $_REQUEST['action'] ) || 'bogo-switch-locale' != $_REQUEST['action'] )
47 46 return;
48 - }
49 47
50 48 check_admin_referer( 'bogo-switch-locale' );
51 49
52 50 $locale = isset( $_REQUEST['locale'] ) ? $_REQUEST['locale'] : '';
53 51
54 - if ( ! bogo_is_available_locale( $locale )
55 - || $locale == bogo_get_user_locale() ) {
52 + if ( ! bogo_is_available_locale( $locale ) || $locale == bogo_get_user_locale() )
56 53 return;
57 - }
58 54
59 55 update_user_option( get_current_user_id(), 'locale', $locale, true );
60 56
61 57 if ( ! empty( $_REQUEST['redirect_to'] ) ) {