Skip to content
This repository has been archived by the owner on Oct 31, 2022. It is now read-only.

Commit

Permalink
Merge pull request #13 from jaredcobb/1.0.5
Browse files Browse the repository at this point in the history
Fixes a bug where events could be duplicated on subsequent syncs
  • Loading branch information
jaredcobb authored Apr 12, 2018
2 parents 6b86f65 + 056e7dd commit e200eec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: jaredcobb
Tags: ccb, church, api, chms
Requires at least: 4.6.0
Tested up to: 4.9.4
Stable tag: 1.0.4
Tested up to: 4.9.5
Stable tag: 1.0.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -61,6 +61,9 @@ You'll need to ensure your [group settings](https://churchcommunitybuilder.force

== Changelog ==

= 1.0.5 =
* Fixes a bug where events could be duplicated on subsequent synchronizations.

= 1.0.4 =
* Adds the CCB event id (as post meta) to each instance of a recurring event. This allows individual instances of a recurring event to be associated with each other in WordPress.

Expand Down
4 changes: 2 additions & 2 deletions ccb-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Church Community Builder Core API
* Plugin URI: https://www.wpccb.com
* Description: A plugin to provide a core integration of the Church Community Builder API into WordPress custom post types
* Version: 1.0.4
* Version: 1.0.5
* Author: Jared Cobb
* Author URI: https://www.jaredcobb.com/
* License: GPL-2.0+
Expand All @@ -27,7 +27,7 @@
define( 'CCB_CORE_PATH', plugin_dir_path( __FILE__ ) );
define( 'CCB_CORE_URL', plugin_dir_url( __FILE__ ) );
define( 'CCB_CORE_BASENAME', plugin_basename( __FILE__ ) );
define( 'CCB_CORE_VERSION', '1.0.4' );
define( 'CCB_CORE_VERSION', '1.0.5' );

// Check minimum requirements before proceeding.
require_once CCB_CORE_PATH . 'includes/class-ccb-core-requirements.php';
Expand Down
1 change: 1 addition & 0 deletions includes/class-ccb-core-synchronizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ public function get_existing_post_data( $post_type ) {
'post_status' => 'any',
'posts_per_page' => $posts_per_page,
'offset' => $offset,
'orderby' => 'ID',
'no_rows_found' => true,
'fields' => 'ids',
];
Expand Down

0 comments on commit e200eec

Please sign in to comment.