PluginProbe
ActivityPub / 9.2.1
ActivityPub v9.2.1
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/class-query.php +2 -9 9.3.09.2.1 View file →
@@ -206,17 +206,10 @@
206 206 $queried_object = \get_post( $post_id );
207 207 }
208 208 }
209 209
210 - /*
211 - * Check Term by ID, unless the request names an author. Other plugins set `term_id` on
212 - * requests that are not about a term at all, Polylang puts its language term on every
213 - * request, and a term here would answer `?author=0` with an OrderedCollection where
214 - * Mastodon expected the blog actor. Leaving the object unset lets the author resolution
215 - * below, and the blog-actor handling in get_activitypub_object_id(), run as usual. An
216 - * absent `author` reads as an empty string, and `?author=0` as the string "0".
217 - */
218 - if ( ! $queried_object && '' === \get_query_var( 'author', '' ) ) {
210 + // Check Term by ID.
211 + if ( ! $queried_object ) {
219 212 $term_id = \get_query_var( 'term_id' );
220 213 if ( $term_id ) {
221 214 $queried_object = \get_term( $term_id );
222 215 }