Prepare ActivityPub resolveable locations #76
2 changed files with 2 additions and 1 deletions
|
@ -47,7 +47,7 @@ final class The_Events_Calendar extends Post {
|
|||
*
|
||||
* @return array|string|null The place/venue if one is set.
|
||||
*/
|
||||
public function get_address(): mixed {
|
||||
public function get_address() {
|
||||
$address = array();
|
||||
|
||||
if ( ! empty( $this->wp_object->country ) ) {
|
||||
|
|
|
@ -192,6 +192,7 @@ class Test_The_Events_Calendar extends WP_UnitTestCase {
|
|||
->create();
|
||||
|
||||
// Call the transformer.
|
||||
|
||||
$event_array = \Activitypub\Transformer\Factory::get_transformer( $wp_object )->to_object()->to_array();
|
||||
|
||||
// Check that the event ActivityStreams representation contains everything as expected.
|
||||
|
|
Loading…
Reference in a new issue