fix tags being in nested arrays
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 38s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 56s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 58s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 57s

This commit is contained in:
André Menrath 2024-09-28 23:05:42 +02:00
parent 4ff31c6b45
commit 1153bce8e2

View file

@ -65,7 +65,7 @@ final class The_Events_Calendar extends Event {
$tags[] = $tag; $tags[] = $tag;
} }
} }
$tags[] = parent::get_tag(); $tags = array_merge( $tags, parent::get_tag() );
return $tags; return $tags;
} }
@ -193,6 +193,7 @@ final class The_Events_Calendar extends Event {
} }
$location->set_id( $venue->permalink ); $location->set_id( $venue->permalink );
$location->set_name( $venue->post_title ); $location->set_name( $venue->post_title );
$location->set_sensitive( null );
return $location; return $location;
} }