fix is_activitypub_request function

This commit is contained in:
Matthias Pfefferle 2023-07-05 18:13:46 +02:00
parent 19d60d8fec
commit c1da689d66

View file

@ -241,7 +241,7 @@ function is_activitypub_request() {
* ActivityPub requests are currently only made for
* author archives, singular posts, and the homepage.
*/
if ( ! \is_author() && ! \is_singular() && ! \is_home() && ! defined( '\REST_REQUEST' ) && ! \REST_REQUEST ) {
if ( ! \is_author() && ! \is_singular() && ! \is_home() && ! defined( '\REST_REQUEST' ) ) {
return false;
}