Skip to content

Commit

Permalink
Merge branch 'hotfix/1.3.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmilner committed Oct 3, 2019
2 parents 885f60b + ed96dae commit d6aacd5
Show file tree
Hide file tree
Showing 12 changed files with 807 additions and 567 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"phpcs.standard": "WordPress"
"phpcs.standard": "WordPress",
"phpcs.executablePath": "./vendor/bin/phpcs",
}
8 changes: 4 additions & 4 deletions ccbpress-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: CCBPress Core
* Plugin URI: https://ccbpress.com/
* Description: Display information from Church Community Builder on your WordPress site.
* Version: 1.3.7
* Version: 1.3.8
* Author: CCBPress <info@ccbpress.com>
* Author URI: https://ccbpress.com/
* Text Domain: ccbpress-core
Expand Down Expand Up @@ -66,7 +66,7 @@ class CCBPress_Core {
* @var string
* @since 1.0.0
*/
public $version = '1.3.6';
public $version = '1.3.8';

/**
* Main CCBPress_Core Instance
Expand Down Expand Up @@ -219,11 +219,11 @@ public static function init() {
public static function schedule_cron() {

if ( false === wp_next_scheduled( 'ccbpress_maintenance' ) ) {
wp_schedule_event( current_time( 'timestamp' ) + 1800, 'hourly', 'ccbpress_maintenance' );
wp_schedule_event( time() + 1800, 'hourly', 'ccbpress_maintenance' );
}

if ( false === wp_next_scheduled( 'ccbpress_import' ) && false === get_option( 'ccbpress_import_in_progress', false ) && CCBPress_Import::is_queue_empty() ) {
wp_schedule_single_event( current_time( 'timestamp' ), 'ccbpress_import' );
wp_schedule_single_event( time(), 'ccbpress_import' );
}

}
Expand Down
2 changes: 1 addition & 1 deletion dist/blocks.build.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions includes/admin/admin-purge-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ public static function purge_transients() {
// Find transients that contain expiration dates.
$cache = $wpdb->get_col(
$wpdb->prepare(
"SELECT option_name FROM $wpdb->options WHERE option_name LIKE %d",
$wpdb->esc_like( '_transient_timeout_ccbp_' ) . '%'
"SELECT option_name FROM $wpdb->options WHERE option_name LIKE %s",
$wpdb->esc_like( '_transient_ccbp_' ) . '%'
)
);

// Delete the transients.
if ( ! empty( $cache ) ) {
foreach ( $cache as $transient ) {
$name = str_replace( '_transient_timeout_', '', $transient );
$name = str_replace( '_transient_', '', $transient );
if ( is_multisite() ) {
delete_site_transient( $name );
} else {
Expand Down
Loading

0 comments on commit d6aacd5

Please sign in to comment.