Skip to content

Notice displayed if you use pagination after deleting a discount code or order #3470

@dwanjuki

Description

@dwanjuki

Describe the bug
Using the pagination controls after deleting Discount Codes or Orders via the Delete row action link causes a notice to display.

After deleting an item, users are taken back to page 1. Customer mentioned it would be nice to take users back to the page they were on.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Memberships > Settings > Discount Codes.
  2. If you have only one page of discount codes, use the screen options to reduce the number shown per page.
  3. Click on the Delete link on a Discount Code's row.
  4. Use the pagination buttons to change page.
  5. See Code not found notice and that URL parameters from the deletion are included in the new page's URL.

Screenshots
Image

Expected behavior
No notices are displayed after using pagination.

Isolating the problem (mark completed items with an [x]):

  • I have deactivated other plugins and confirmed this bug occurs when only Paid Memberships Pro plugin is active.
  • This bug happens with a default WordPress theme active, or Memberlite.
  • I can reproduce this bug consistently using the steps above.

WordPress Environment

Details PMPro 3.5.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions