diff --git a/caliper/entity.php b/caliper/entity.php index a5bd3a9..383e682 100644 --- a/caliper/entity.php +++ b/caliper/entity.php @@ -145,7 +145,7 @@ public static function post( \WP_Post &$post ) { $actor = CaliperActor::generate_actor( $author ); - if ( is_a( $actor, 'Agent' ) ) { + if ( is_a( $actor, 'IMSGlobal\Caliper\entities\agent\Person' ) ) { $post_entity->setCreators( array( $actor ) ); } else { file_put_contents( WP_CONTENT_DIR . '/debug.log', print_r( array( 'WPCALIPERDEBUG', $actor, $author, $post_entity ), true ), FILE_APPEND ); diff --git a/wp-caliper.php b/wp-caliper.php index 2cfb5fe..e790aef 100644 --- a/wp-caliper.php +++ b/wp-caliper.php @@ -2,7 +2,7 @@ /** * Plugin Name: WP Caliper * Plugin URI: https://github.com/ubc/wp-caliper - * Version: 1.1.1 + * Version: 1.1.2 * Description: This plugin generates and emits Caliper events to the specified LRS * Tags: Caliper * Author: CTLT, Andrew Gardener