algoliasearch-wordpress
algoliasearch-wordpress copied to clipboard
Records are not being deleted if delete action is made on standard init action priority
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
Fix is in place for this issue at PR https://github.com/algolia/algoliasearch-wordpress/pull/823