| @@ -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 | ); |