PluginProbe
ActivityPub / 7.8.2
ActivityPub v7.8.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/class-query.php +1 -11 8.2.07.8.2 View file →
@@ -337,12 +337,8 @@
337 337 if ( \get_option( 'activitypub_content_negotiation', '1' ) ) {
338 338 $return = true;
339 339 }
340 340
341 - if ( \is_author() && \get_user_option( 'activitypub_use_permalink_as_id', \get_queried_object_id() ) ) {
342 - $return = true;
343 - }
344 -
345 341 /**
346 342 * Filters whether content negotiation should be forced.
347 343 *
348 344 * @param bool $return Whether content negotiation should be forced.
@@ -400,15 +396,9 @@
400 396 if ( ! $meta ) {
401 397 return false;
402 398 }
403 399
404 - $post = $this->get_queried_object();
405 -
406 - // Ensure the meta belongs to the queried post to prevent arbitrary meta disclosure.
407 - if ( (int) $meta->post_id !== $post->ID ) {
408 - return false;
409 - }
410 -
400 + $post = $this->get_queried_object();
411 401 $user_uri = get_user_id( $post->post_author );
412 402
413 403 if ( ! $user_uri ) {
414 404 return false;