[wp-trac] [WordPress Trac] #53622: Query Param status default is a string value, but an array is required
WordPress Trac
noreply at wordpress.org
Wed Jul 7 17:24:41 UTC 2021
#53622: Query Param status default is a string value, but an array is required
--------------------------+-----------------------------
Reporter: austyfrosty | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: minor | Keywords:
Focuses: rest-api |
--------------------------+-----------------------------
The default value in the collection params that is a string.
https://github.com/WordPress/wordpress-
develop/blob/953e1c5f8313a89d4d3b99ab5996b4660045c976/src/wp-includes
/rest-api/endpoints/class-wp-rest-posts-controller.php#L2847
Really, we should make that `['publish']`.
Original commit: https://github.com/WordPress/wordpress-
develop/commit/ede099a7047a150a37d43a380e661b99387bce41
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53622>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list