Skip to content
This repository was archived by the owner on May 9, 2019. It is now read-only.
This repository was archived by the owner on May 9, 2019. It is now read-only.

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

@sebastianthulin

Description

@sebastianthulin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions