fix GatherPress transmogrifier
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Failing after 1m6s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 53s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m6s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Successful in 1m5s
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Failing after 1m6s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 53s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m6s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Successful in 1m5s
This commit is contained in:
parent
69f0cd3ccb
commit
db4c72db86
1 changed files with 6 additions and 2 deletions
|
@ -442,11 +442,15 @@ class GatherPress {
|
|||
);
|
||||
|
||||
if ( $post_id ) {
|
||||
// Update existing GatherPress event post.
|
||||
$args['ID'] = $post_id;
|
||||
wp_update_post( $args );
|
||||
} else {
|
||||
// Insert new GatherPress event post.
|
||||
$post_id = wp_insert_post( $args );
|
||||
}
|
||||
|
||||
// Insert new GatherPress Event post.
|
||||
$post_id = wp_update_post( $args );
|
||||
|
||||
|
||||
if ( ! $post_id || is_wp_error( $post_id ) ) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue