Skip to content

Commit

Permalink
Merge pull request #185 from w3bdesign/develop
Browse files Browse the repository at this point in the history
Revert "Make work with premium version"
  • Loading branch information
w3bdesign authored May 20, 2023
2 parents 7598f38 + 2ffb84d commit e6e005a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions classes/class-send-products.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,8 @@ public static function send_products_to_algolia($id = '')
*/
$result = $index->saveObjects($records);

if ('Algolia\AlgoliaSearch\Response\NullResponse' === get_class($result)) {
echo '<div class="notice notice-error is-dismissible">
<p>' . esc_html__('Potential API key issue. You may dismiss this if you are using the premium version.', 'algolia-woo-indexer') . '</p>
</div>';
if ('Algolia\AlgoliaSearch\Response\NullResponse' === get_class($result)) {
wp_die(esc_html__('No response from the server. Please check your settings and try again', 'algolia_woo_indexer_settings'));
}

/**
Expand Down

0 comments on commit e6e005a

Please sign in to comment.