updated plugin ActivityPub version 9.1.0

This commit is contained in:
2026-07-28 15:03:10 +00:00
committed by Gitium
parent bf428f0e45
commit ff806e1811
217 changed files with 6098 additions and 3025 deletions

View File

@ -7,6 +7,8 @@
namespace Activitypub\Transformer;
use Activitypub\Activity\Base_Object;
/**
* Term Transformer Class.
*/
@ -19,7 +21,7 @@ class Term extends Base {
* @return \Activitypub\Activity\Base_Object|\WP_Error The OrderedCollection or WP_Error on failure.
*/
public function to_object() {
$base_object = new \Activitypub\Activity\Base_Object();
$base_object = new Base_Object();
$base_object->{'@context'} = 'https://www.w3.org/ns/activitystreams';
$base_object->set_type( 'OrderedCollection' );
$base_object->set_id( $this->get_id() );
@ -61,6 +63,6 @@ class Term extends Base {
return '';
}
return \esc_url( $term_link );
return \esc_url_raw( $term_link );
}
}