PluginProbe
ActivityPub / 8.0.2
ActivityPub v8.0.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/transformer/class-term.php +2 -4 9.3.0 → 8.0.2 View file →
@@ -6,10 +6,8 @@
6 6 */
7 7
8 8 namespace Activitypub\Transformer;
9 9
10 -use Activitypub\Activity\Base_Object;
11 -
12 10 /**
13 11 * Term Transformer Class.
14 12 */
15 13 class Term extends Base {
@@ -20,9 +18,9 @@
20 18 *
21 19 * @return \Activitypub\Activity\Base_Object|\WP_Error The OrderedCollection or WP_Error on failure.
22 20 */
23 21 public function to_object() {
24 - $base_object = new Base_Object();
22 + $base_object = new \Activitypub\Activity\Base_Object();
25 23 $base_object->{'@context'} = 'https://www.w3.org/ns/activitystreams';
26 24 $base_object->set_type( 'OrderedCollection' );
27 25 $base_object->set_id( $this->get_id() );
28 26 $base_object->set_url( $this->get_url() );
@@ -62,7 +60,7 @@
62 60 if ( \is_wp_error( $term_link ) ) {
63 61 return '';
64 62 }
65 63
66 - return \esc_url_raw( $term_link );
64 + return \esc_url( $term_link );
67 65 }
68 66 }