[wp-trac] [WordPress Trac] #48785: REST API: WP_REST_Controller::get_public_item_schema() assumes that the schema has properties.

WordPress Trac noreply at wordpress.org
Sun Dec 1 21:52:53 UTC 2019


#48785: REST API: WP_REST_Controller::get_public_item_schema() assumes that the
schema has properties.
-------------------------------------------------+-------------------------
 Reporter:  pento                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.4
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests good-first-bug      |     Focuses:
  has-patch                                      |
PR Number:                                       |
-------------------------------------------------+-------------------------

Comment (by TimothyBlynJacobs):

 Thanks for working on a patch for this @dhavalkasvala! Do you want to try
 tackling a [https://make.wordpress.org/core/handbook/testing/automated-
 testing/writing-phpunit-tests/ unit test] for this? Coding standards wise,
 we should also have [https://make.wordpress.org/core/handbook/best-
 practices/coding-standards/php/#space-usage spaces around the
 parentheses].

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


More information about the wp-trac mailing list