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

WordPress Trac noreply at wordpress.org
Fri Oct 2 17:46:05 UTC 2020


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

 * owner:  (none) => TimothyBlynJacobs
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"49088" 49088]:
 {{{
 #!CommitTicketReference repository="" revision="49088"
 REST API: Allow for string ids in the search controller.

 Previously, the search controller infrastructure required that the id
 property was an integer. This prevents data models that use a string id
 from utilizing the search infrastructure.

 This commit lifts the restraint that search handlers return integer ids.
 This will allow for the Post Formats search handler coming in 5.6 to use
 slugs instead of creating fake ids.

 Props stoyangeorgiev.
 Fixes #51131.
 }}}

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


More information about the wp-trac mailing list