-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix slashing when creating or updating a menu item (#35147)
* Slash 'menu-id', 'menu-item-db-id' and $prepared-nav-item values before passing them in into wp_update_nav_menu_item function. * Add unit tests that check if create_item and update_item endpoints correctly handle slashed data. * Don't slash menu-id and menu-item-db-id values. They are expected to be integers.
- Loading branch information
1 parent
b026af1
commit 456eabc
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters