Skip to content

Commit e6e005a

Browse files
authored
Merge pull request #185 from w3bdesign/develop
Revert "Make work with premium version"
2 parents 7598f38 + 2ffb84d commit e6e005a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

classes/class-send-products.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,8 @@ public static function send_products_to_algolia($id = '')
224224
*/
225225
$result = $index->saveObjects($records);
226226

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

233231
/**

0 commit comments

Comments
 (0)