[wp-trac] [WordPress Trac] #51131: Remove constraint that search handlers must return integer ids

WordPress Trac noreply at wordpress.org
Sun Sep 27 02:02:10 UTC 2020


#51131: Remove constraint that search handlers must return integer ids
-------------------------------------------------+-------------------------
 Reporter:  TimothyBlynJacobs                    |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  5.6
Component:  REST API                             |     Version:  5.0
 Severity:  normal                               |  Resolution:
 Keywords:  needs-unit-tests good-first-bug      |     Focuses:
  has-patch                                      |
-------------------------------------------------+-------------------------

Comment (by TimothyBlynJacobs):

 Thanks for working on a patch @stoyangeorgiev!

 There are a couple of other changes we need to make too. The type hints
 for the `$id` parameter should be updated to `int|string`. We'll also need
 to update the `id` schema in `WP_REST_Search_Controller` to be an array of
 `array( 'integer', 'string' )` to reflect that it can be either of those
 types.

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


More information about the wp-trac mailing list