get_content_type(); if ( ! $content_type ) { return parent::dispatch( $request ); } // check for content-sub-types like 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"' if ( \preg_match( '/application\/([a-zA-Z+_-]+\+)json/', $content_type['value'] ) ) { // Signature Verification requires headers to be intact } // make request filterable $request = \apply_filters( 'activitypub_pre_dispatch_request', $request ); return parent::dispatch( $request ); } }