[wp-trac] [WordPress Trac] #48169: Use empty case for `array` in `WP_REST_Meta_Fields::get_default_for_type`
WordPress Trac
noreply at wordpress.org
Sun Sep 29 22:33:46 UTC 2019
#48169: Use empty case for `array` in `WP_REST_Meta_Fields::get_default_for_type`
--------------------------+-------------------------------
Reporter: itowhid06 | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.3
Component: REST API | Version:
Severity: trivial | Resolution: fixed
Keywords: has-patch | Focuses: coding-standards
--------------------------+-------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"46346" 46346]:
{{{
#!CommitTicketReference repository="" revision="46346"
REST API: Combine `array` and `object` cases in
`WP_REST_Meta_Fields::get_default_for_type()` to remove duplicated line.
Add missing description for `$type` parameter.
Props itowhid06, dkarfa.
Fixes #48169.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48169#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list