Skip to content

Commit

Permalink
Merge pull request #106 from firetreedesign/v1.5.1
Browse files Browse the repository at this point in the history
V1.5.1
  • Loading branch information
danielmilner authored Nov 29, 2023
2 parents 3b68263 + d124c23 commit 6bb9f3b
Show file tree
Hide file tree
Showing 7 changed files with 1,207 additions and 914 deletions.
4 changes: 2 additions & 2 deletions ccbpress-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Church Data Connect for Church Community Builder
* Plugin URI: https://churchdataconnect.com/
* Description: Display information from Church Community Builder on your WordPress site.
* Version: 1.5.0
* Version: 1.5.1
* Author: FireTree Design, LLC <info@firetreedesign.com>
* Author URI: https://firetreedesign.com/
* Text Domain: ccbpress-core
Expand Down Expand Up @@ -74,7 +74,7 @@ class CCBPress_Core {
* @var string
* @since 1.0.0
*/
public $version = '1.5.0';
public $version = '1.5.1';

/**
* Main CCBPress_Core Instance
Expand Down
18 changes: 9 additions & 9 deletions includes/class-ccbpress-background-get.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* @package CCBPress Core
*/

use CCBPress\Library\BackgroundProcessing\WP_Background_Process;

/**
* CCBPress Background Get class
*
Expand All @@ -25,7 +27,7 @@ class CCBPress_Background_Get extends WP_Background_Process {

/**
* Cron Interval
*
*
* @var int
*/
protected $cron_interval = 5;
Expand Down Expand Up @@ -56,11 +58,11 @@ protected function task( $item ) {
}

$defaults = array(
'cache_lifespan' => 0,
'addon' => null,
'refresh_cache' => 1,
'cache_lifespan' => 0,
'addon' => null,
'refresh_cache' => 1,
);
$item = wp_parse_args( $item, $defaults );
$item = wp_parse_args( $item, $defaults );

/**
* Update our import status
Expand Down Expand Up @@ -90,7 +92,7 @@ protected function task( $item ) {
*/
$response = CCBPress()->ccb->get( $item );

$srv = strtolower( $item['query_string']['srv'] );
$srv = strtolower( $item['query_string']['srv'] );
$response = apply_filters( "ccbpress_background_get_{$srv}", $response, $item );

/**
Expand All @@ -117,15 +119,14 @@ protected function task( $item ) {
* Done
*/
return false;

}

/**
* Save
*/
public function save() {
parent::save();
$this->data = [];
$this->data = array();
return $this;
}

Expand All @@ -136,5 +137,4 @@ protected function complete() {
do_action( 'ccbpress_background_get_complete' );
parent::complete();
}

}
Loading

0 comments on commit 6bb9f3b

Please sign in to comment.