fix: add missing self prefix of class constant
This commit is contained in:
parent
6d40ebf30e
commit
0ccb6c91eb
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ class Transformers_Manager {
|
|||
switch ( get_class( $object ) ) {
|
||||
case 'WP_Post':
|
||||
$post_type = get_post_type( $object );
|
||||
$transformer_mapping = \get_option( 'activitypub_transformer_mapping', DEFAULT_TRANSFORMER_MAPPING );
|
||||
$transformer_mapping = \get_option( 'activitypub_transformer_mapping', self::DEFAULT_TRANSFORMER_MAPPING );
|
||||
$transformer_name = $transformer_mapping[ $post_type ];
|
||||
$transformer_instance = new ( $this->get_transformers( $transformer_name ) );
|
||||
$transformer_instance->set_wp_post( $object );
|
||||
|
|
Loading…
Reference in a new issue