Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow menu_order to be negative #3468

Merged
merged 1 commit into from
May 22, 2023
Merged

Conversation

felipeelia
Copy link
Member

Description of the Change

As pointed out in this comment, ElasticPress is not storing negative menu_order values but making them positive instead. This PR addresses this issue.

How to test the Change

Create a product (or any post), give it a negative menu_order value, check Debug Bar EP and see the menu_order stored as a positive number

Changelog Entry

Fixed - Negative menu_order values being transformed into positive numbers.

Credits

Props @felipeelia and @navidabdi

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Copy link
Contributor

@burhandodhy burhandodhy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felipeelia felipeelia merged commit 6fd5317 into develop May 22, 2023
@felipeelia felipeelia deleted the fix/negative-menu-order branch May 22, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants