Skip to content

Commit

Permalink
Fixed bug causing duplicated recurring events to also alter the origi…
Browse files Browse the repository at this point in the history
…nal recurring events on edit ( thanks Steve! )
  • Loading branch information
blobaugh committed Sep 26, 2012
1 parent 2717813 commit 7524db8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion duplicate-tec-event.php
Expand Up @@ -113,7 +113,10 @@ function dte_duplicate_tribe_event() {
$event['EventEndDate'] = date( 'Y-m-d', strtotime( $fmeta['_EventEndDate'] ) );
$event['EventEndHour'] = date( 'h', strtotime( $fmeta['_EventEndDate'] ) );
$event['EventEndMinute'] = date( 'j', strtotime( $fmeta['_EventEndDate'] ) );


// Unset recurrence to prevent potentially thousands of new events being created
// This will also unlink an individual recurrence from its parent
unset( $fmeta['_EventRecurrence'] );

$event = array_merge( $event, $fmeta );

Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Expand Up @@ -28,6 +28,8 @@ If the automatic process above fails, follow these simple steps to do a manual i
None yet. Toss them on over :)

== Changelog ==
= 1.4 =
* Fixed bug causing duplicated recurring events to also alter the original recurring events on edit ( thanks Steve! )

= 1.3 =
* Added a nonce for security
Expand Down

0 comments on commit 7524db8

Please sign in to comment.