@@ 45-54 (lines=10) @@ | ||
42 | GLOBAL $WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG; |
|
43 | GLOBAL $WORDPRESS_SOCIAL_LOGIN_VERSION; |
|
44 | ||
45 | if( isset( $_REQUEST["enable"] ) && isset( $WORDPRESS_SOCIAL_LOGIN_COMPONENTS[ $_REQUEST["enable"] ] ) ) |
|
46 | { |
|
47 | $component = $_REQUEST["enable"]; |
|
48 | ||
49 | $WORDPRESS_SOCIAL_LOGIN_COMPONENTS[ $component ][ "enabled" ] = true; |
|
50 | ||
51 | update_option( "wsl_components_" . $component . "_enabled", 1 ); |
|
52 | ||
53 | wsl_register_components(); |
|
54 | } |
|
55 | ||
56 | if( isset( $_REQUEST["disable"] ) && isset( $WORDPRESS_SOCIAL_LOGIN_COMPONENTS[ $_REQUEST["disable"] ] ) ) |
|
57 | { |
|
@@ 56-65 (lines=10) @@ | ||
53 | wsl_register_components(); |
|
54 | } |
|
55 | ||
56 | if( isset( $_REQUEST["disable"] ) && isset( $WORDPRESS_SOCIAL_LOGIN_COMPONENTS[ $_REQUEST["disable"] ] ) ) |
|
57 | { |
|
58 | $component = $_REQUEST["disable"]; |
|
59 | ||
60 | $WORDPRESS_SOCIAL_LOGIN_COMPONENTS[ $component ][ "enabled" ] = false; |
|
61 | ||
62 | update_option( "wsl_components_" . $component . "_enabled", 2 ); |
|
63 | ||
64 | wsl_register_components(); |
|
65 | } |
|
66 | ||
67 | $wslp = "networks"; |
|
68 | $assets_base_url = WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . 'assets/img/16x16/'; |