Automattic / Automattic/jetpack
Restaurant Menu: Items added via Add Many Items have title converted to lowercase
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Issue
This is a preexisting issue with the Restaurant Menu custom post type. When adding items using the 'Add Many Items' page, if the title has any uppercase characters they are converted to lowercase. Items added via the 'Add Menu Item' page do not lose their uppercase characters, however.
### How to replicate
To replicate the issue:
* Install a theme which includes support for the Restaurant Menu CPT such as Confit.
* Click on 'Add Many Items' from the Food Menus admin menu - `/wp-admin/edit.php?post_type=nova_menu_item&page=add_many_nova_items`
* Add a few items with capitalized names, then click 'Add These New Menu Items'
* Visit the main menu items page at `/wp-admin/edit.php?post_type=nova_menu_item` and notice those items names have been converted to lowercase.
### Prevalence
This will be the case on any site (self-hosted, WoA, Simple), regardless of version.
Reported in internal testing: p8oabR-1Bq-p2#comment-8323
Contributor guide
Research direction
First reproduce the issue from the Add Many Items admin entry point at /wp-admin/edit.php?post_type=nova_menu_item&page=add_many_nova_items, then compare it with the Add Menu Item page. Done means capitalized menu item titles remain unchanged after bulk creation while the existing single-item flow continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100