add attributed to meta for event posts
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 57s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Successful in 1m8s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Successful in 1m7s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m9s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Has been cancelled
PHPUnit / PHPUnit – PHP 8.4 (pull_request) Has been cancelled
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Has been cancelled

This commit is contained in:
André Menrath 2024-12-31 20:01:04 +01:00
parent d8b3c27ead
commit 38074d66e4

View file

@ -94,7 +94,7 @@ class Event_Sources {
'type' => 'string',
'single' => false,
'sanitize_callback' => function ( $value ) {
return esc_sql( $value );
return sanitize_url( $value );
},
)
);
@ -108,11 +108,23 @@ class Event_Sources {
'type' => 'string',
'single' => false,
'sanitize_callback' => function ( $value ) {
return esc_sql( $value );
return sanitize_url( $value );
},
)
);
}
\register_post_meta(
$event_plugin_integration::get_post_type(),
'_event_bridge_for_activitypub_attributed_to',
array(
'type' => 'string',
'single' => false,
'sanitize_callback' => function ( $value ) {
return sanitize_url( $value );
},
)
);
}
}