[wp-trac] [WordPress Trac] #38429: Add a constructor to WP_REST_Settings_Controller

WordPress Trac noreply at wordpress.org
Fri Oct 21 15:16:27 UTC 2016


#38429: Add a constructor to WP_REST_Settings_Controller
-------------------------+------------------------------
 Reporter:  Soean        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  REST API     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------

Comment (by Soean):

 All the other controller classes have a constructor to set the properties.
 So we should use it in `WP_REST_Settings_Controller` too, to be consistent
 in the classes.

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


More information about the wp-trac mailing list