fix transformer filter
This commit is contained in:
parent
1232aaf4bc
commit
735926745b
1 changed files with 2 additions and 2 deletions
|
@ -146,9 +146,9 @@ class Setup {
|
||||||
* @param mixed $wp_object The WordPress object to transform.
|
* @param mixed $wp_object The WordPress object to transform.
|
||||||
* @param string $object_class The class of the object to transform.
|
* @param string $object_class The class of the object to transform.
|
||||||
*
|
*
|
||||||
* @returns \Activitypub\Transformer\Base
|
* @return \Activitypub\Transformer\Base|null
|
||||||
*/
|
*/
|
||||||
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base {
|
public function register_activitypub_event_transformer( $transformer, $wp_object, $object_class ): \Activitypub\Transformer\Base|null {
|
||||||
// If the current WordPress object is not a post (e.g., a WP_Comment), don't change the transformer.
|
// If the current WordPress object is not a post (e.g., a WP_Comment), don't change the transformer.
|
||||||
if ( 'WP_Post' !== $object_class ) {
|
if ( 'WP_Post' !== $object_class ) {
|
||||||
return $transformer;
|
return $transformer;
|
||||||
|
|
Loading…
Reference in a new issue