Opened 5 years ago
Closed 5 years ago
#52802 closed defect (bug) (invalid)
Possible typo in rest_validate_enum() function
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 5.7 |
| Component: | REST API | Keywords: | |
| Focuses: | Cc: |
Change History (1)
Note: See
TracTickets for help on using
tickets.
Thanks for the ticket!
The
%2$lplaceholder is not a typo, it's meant for outputting localized lists of items. See the wp_sprintf_l() function for more details, attached via a filter to wp_sprintf().The
$encoded_enum_valuesvariable there is an array, so%2$swon't work as expected.