PluginProbe
ActivityPub / 7.7.0
ActivityPub v7.7.0
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/rest/class-collections-controller.php +4 -4 9.3.07.7.0 View file →
@@ -129,9 +129,9 @@
129 129 }
130 130
131 131 $response = array(
132 132 '@context' => Base_Object::JSON_LD_CONTEXT,
133 - 'id' => get_rest_url_by_path( \sprintf( 'actors/%d/collections/tags', $user_id ) ),
133 + 'id' => get_rest_url_by_path( sprintf( 'actors/%d/collections/tags', $user_id ) ),
134 134 'type' => 'Collection',
135 135 'totalItems' => \is_countable( $tags ) ? \count( $tags ) : 0,
136 136 'items' => array(),
137 137 );
@@ -138,9 +138,9 @@
138 138
139 139 foreach ( $tags as $tag ) {
140 140 $response['items'][] = array(
141 141 'type' => 'Hashtag',
142 - 'href' => \esc_url_raw( \get_tag_link( $tag ) ),
142 + 'href' => \esc_url( \get_tag_link( $tag ) ),
143 143 'name' => esc_hashtag( $tag->name ),
144 144 );
145 145 }
146 146
@@ -160,9 +160,9 @@
160 160
161 161 if ( is_single_user() || Actors::BLOG_USER_ID !== $user_id ) {
162 162 $sticky_posts = \get_option( 'sticky_posts' );
163 163
164 - if ( $sticky_posts && \is_array( $sticky_posts ) ) {
164 + if ( $sticky_posts && is_array( $sticky_posts ) ) {
165 165 // Only show public posts.
166 166 $args = array(
167 167 'post__in' => $sticky_posts,
168 168 'ignore_sticky_posts' => 1,
@@ -186,9 +186,9 @@
186 186 }
187 187
188 188 $response = array(
189 189 '@context' => Base_Object::JSON_LD_CONTEXT,
190 - 'id' => get_rest_url_by_path( \sprintf( 'actors/%d/collections/featured', $user_id ) ),
190 + 'id' => get_rest_url_by_path( sprintf( 'actors/%d/collections/featured', $user_id ) ),
191 191 'type' => 'OrderedCollection',
192 192 'totalItems' => \is_countable( $posts ) ? \count( $posts ) : 0,
193 193 'orderedItems' => array(),
194 194 );