Skip to content

Commit

Permalink
See pewresearch/pewresearch-org@3f656a0 from refs/heads/release/5.0-u…
Browse files Browse the repository at this point in the history
…rl-rewrites
  • Loading branch information
prcdevgitbot committed Mar 7, 2024
1 parent f221a53 commit 074586f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions includes/interactives/blocks/loader-block/loader-block.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,12 @@ public function render_interactive_loader_callback($attributes, $content, $block

$enqueued_handles = array();
if ( $is_legacy_wpackio ) {
error_log('Enqueuing firebase for legacy wpackio');
wp_enqueue_script('firebase');
// try to load the legacy wpackio, and if it fails, then log the error and return empty string.
try {
error_log('Loading legacy wpackio for ' . $attributes['legacyWpackIo']['appName']);
$enqueued_handles = $this->load_legacy_wpackIO($attributes['legacyWpackIo']['appName']);
} catch ( \Exception $e ) {
error_log('Error loading legacy wpackio for ' . $attributes['legacyWpackIo']['appName']);
if ( function_exists( 'wp_sentry_safe' ) ) {
error_log('Logging error to sentry');
wp_sentry_safe( function ( \Sentry\State\HubInterface $client ) use ( $e ) {
$client->withScope(function (\Sentry\State\Scope $scope) use ($client, $e) {
$scope->setTag('interactiveType', 'wpackio');
Expand Down

0 comments on commit 074586f

Please sign in to comment.