File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,12 @@ function wpcloud_get_api_key(): string {
49
49
50
50
$ api_key = apply_filters ( 'wpcloud_api_key ' , $ api_key );
51
51
52
- if ( ! empty ( $ api_key ) ) {
52
+ if ( $ api_key ) {
53
53
return $ api_key ;
54
54
}
55
-
56
55
// Else check the local options.
57
- $ options = get_option ( 'wpcloud_options ' ) ?? array ();
58
- return $ options ['wpcloud_api_key ' ] ?? '' ;
56
+ $ settings = get_option ( 'wpcloud_settings ' , array () );
57
+ return $ settings ['wpcloud_api_key ' ] ?? '' ;
59
58
}
60
59
61
60
/**
Original file line number Diff line number Diff line change 7
7
* Author URI: https://wp.cloud/
8
8
* Text Domain: wpcloud
9
9
* Domain Path: /languages
10
- * Version: 1.0.0
10
+ * Version: 1.0.0-beta.1
11
11
*
12
12
* @package wpcloud-station
13
13
*/
You can’t perform that action at this time.
0 commit comments