Skip to content

Commit 6bb9f3b

Browse files
authored
Merge pull request #106 from firetreedesign/v1.5.1
V1.5.1
2 parents 3b68263 + d124c23 commit 6bb9f3b

File tree

7 files changed

+1207
-914
lines changed

7 files changed

+1207
-914
lines changed

ccbpress-core.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Church Data Connect for Church Community Builder
44
* Plugin URI: https://churchdataconnect.com/
55
* Description: Display information from Church Community Builder on your WordPress site.
6-
* Version: 1.5.0
6+
* Version: 1.5.1
77
* Author: FireTree Design, LLC <info@firetreedesign.com>
88
* Author URI: https://firetreedesign.com/
99
* Text Domain: ccbpress-core
@@ -74,7 +74,7 @@ class CCBPress_Core {
7474
* @var string
7575
* @since 1.0.0
7676
*/
77-
public $version = '1.5.0';
77+
public $version = '1.5.1';
7878

7979
/**
8080
* Main CCBPress_Core Instance

includes/class-ccbpress-background-get.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* @package CCBPress Core
88
*/
99

10+
use CCBPress\Library\BackgroundProcessing\WP_Background_Process;
11+
1012
/**
1113
* CCBPress Background Get class
1214
*
@@ -25,7 +27,7 @@ class CCBPress_Background_Get extends WP_Background_Process {
2527

2628
/**
2729
* Cron Interval
28-
*
30+
*
2931
* @var int
3032
*/
3133
protected $cron_interval = 5;
@@ -56,11 +58,11 @@ protected function task( $item ) {
5658
}
5759

5860
$defaults = array(
59-
'cache_lifespan' => 0,
60-
'addon' => null,
61-
'refresh_cache' => 1,
61+
'cache_lifespan' => 0,
62+
'addon' => null,
63+
'refresh_cache' => 1,
6264
);
63-
$item = wp_parse_args( $item, $defaults );
65+
$item = wp_parse_args( $item, $defaults );
6466

6567
/**
6668
* Update our import status
@@ -90,7 +92,7 @@ protected function task( $item ) {
9092
*/
9193
$response = CCBPress()->ccb->get( $item );
9294

93-
$srv = strtolower( $item['query_string']['srv'] );
95+
$srv = strtolower( $item['query_string']['srv'] );
9496
$response = apply_filters( "ccbpress_background_get_{$srv}", $response, $item );
9597

9698
/**
@@ -117,15 +119,14 @@ protected function task( $item ) {
117119
* Done
118120
*/
119121
return false;
120-
121122
}
122123

123124
/**
124125
* Save
125126
*/
126127
public function save() {
127128
parent::save();
128-
$this->data = [];
129+
$this->data = array();
129130
return $this;
130131
}
131132

@@ -136,5 +137,4 @@ protected function complete() {
136137
do_action( 'ccbpress_background_get_complete' );
137138
parent::complete();
138139
}
139-
140140
}

0 commit comments

Comments
 (0)