don't pass null to sanitize_url
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 48s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m5s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Successful in 1m0s
All checks were successful
PHP Code Checker / PHP Code Checker (pull_request) Successful in 48s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m5s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m1s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Successful in 1m0s
This commit is contained in:
parent
aee19e9606
commit
fbba8c283c
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class VS_Event_List extends Base {
|
||||||
'guid' => \sanitize_url( $this->activitypub_event->get_id() ),
|
'guid' => \sanitize_url( $this->activitypub_event->get_id() ),
|
||||||
'meta_input' => array(
|
'meta_input' => array(
|
||||||
'event-start-date' => \strtotime( $this->activitypub_event->get_start_time() ),
|
'event-start-date' => \strtotime( $this->activitypub_event->get_start_time() ),
|
||||||
'event-link' => \sanitize_url( $this->activitypub_event->get_url() ),
|
'event-link' => \sanitize_url( $this->activitypub_event->get_url() ?? $this->activitypub_event->get_id() ),
|
||||||
'event-link-label' => \sanitize_text_field( __( 'Original Website', 'event-bridge-for-activitypub' ) ),
|
'event-link-label' => \sanitize_text_field( __( 'Original Website', 'event-bridge-for-activitypub' ) ),
|
||||||
'event-link-target' => 'yes', // Open in new window.
|
'event-link-target' => 'yes', // Open in new window.
|
||||||
'event-link-title' => 'no', // Whether to redirect event title to original source.
|
'event-link-title' => 'no', // Whether to redirect event title to original source.
|
||||||
|
|
Loading…
Reference in a new issue