[wp-trac] [WordPress Trac] #52802: Possible typo in rest_validate_enum() function

WordPress Trac noreply at wordpress.org
Sat Mar 13 07:58:57 UTC 2021


#52802: Possible typo in rest_validate_enum() function
----------------------------+-----------------------------
 Reporter:  Hareesh Pillai  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  General         |    Version:  5.7
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 There seems to be a typo in the return statement of `rest_validate_enum()`
 function. See [https://build.trac.wordpress.org/browser/branches/5.7/wp-
 includes/rest-api.php?marks=1965#L1965 L1965].

 Instead of `%1$s is not one of %2$l`, it should be `%1$s is not one of
 %2$s`.

 Introduced in #51911.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52802>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list