algoliasearch-wordpress icon indicating copy to clipboard operation
algoliasearch-wordpress copied to clipboard

Records are not being deleted if delete action is made on standard init action priority

Open sebastianthulin opened this issue 5 years ago • 1 comments

What did you expect to happen?

The record should have been deleted from algolia.

What happened instead?

No request to delete post from the index were made.

How can we reproduce this behavior?

Run wp_delete_post() on init action, with a priority lower than 20.

add_action('init', function() { wp_delete_post(92, false); });

Can you provide a link to a page which shows this issue? No.

Technical info

  • WordPress version: 5.0.0 (All versions included)
  • Algolia Search plugin version: 2.11.3

sebastianthulin avatar Feb 28 '19 09:02 sebastianthulin

Fix is in place for this issue at PR https://github.com/algolia/algoliasearch-wordpress/pull/823

sebastianthulin avatar Feb 28 '19 09:02 sebastianthulin