Opened 4 years ago
Closed 4 years ago
#52802 closed defect (bug) (invalid)
Possible typo in rest_validate_enum() function
Reported by: | Hareesh Pillai | 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$l
placeholder 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_values
variable there is an array, so%2$s
won't work as expected.