[wp-trac] [WordPress Trac] #48841: Add missing doc and refactor code for REST API: WP_REST_Attachments_Controller Class

WordPress Trac noreply at wordpress.org
Fri Feb 28 12:30:08 UTC 2020


#48841: Add missing doc and refactor code for REST API:
WP_REST_Attachments_Controller Class
--------------------------+-----------------------------
 Reporter:  dkarfa        |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.4
Component:  REST API      |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  rest-api
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47391" 47391]:
 {{{
 #!CommitTicketReference repository="" revision="47391"
 Docs: Improve documentation for `WP_REST_Attachments_Controller`.

 This adds a missing DocBlock for `::register_routes()` and parameter
 descriptions for `::post_process_item()`.

 Includes minor documenation fixes in other REST API classes for
 consistency.

 Props dkarfa, mukesh27, SergeyBiryukov.
 Fixes #48841.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48841#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list