#49270 closed enhancement (fixed)
Add color format to REST API validation
| Reported by: | spacedmonkey | Owned by: | spacedmonkey |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.5 |
| Component: | REST API | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | rest-api |
Description
Add validation for color as a formatted type in REST API requests.
Attachments (4)
Change History (11)
This ticket was mentioned in PR #140 on WordPress/wordpress-develop by spacedmonkey.
6 years ago
#1
This ticket was mentioned in PR #141 on WordPress/wordpress-develop by spacedmonkey.
6 years ago
#2
#4
@
6 years ago
- Milestone Awaiting Review → Future Release
This looks great! I agree with @chrisvanpatten about naming to make it clear this is a hex color format.
#5
@
6 years ago
Thanks for the feedback. In 49270.3.diff, I change naming to hex-color and added tests.
You can also posts comments on PR here.
Version 0, edited 6 years ago by
(next)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I dig this a lot but it should probably be named "hex color" or something like that, to distinguish it from other valid color types (rgb, rgba, hsl, etc)