Skip to content

Commit

Permalink
Changed expected class from CaliperActor::generate_actor() so we can …
Browse files Browse the repository at this point in the history
…more accurately check what the person is. Should allow us to see where this fails more effectively.

Tagged 1.1.2
  • Loading branch information
richardtape committed Nov 17, 2021
1 parent 6eaae00 commit ae6c326
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion caliper/entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion wp-caliper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae6c326

Please sign in to comment.