[wp-trac] [WordPress Trac] #50790: REST API: Allow sending empty array to remove all values for single = false meta

WordPress Trac noreply at wordpress.org
Sun Jan 17 00:49:53 UTC 2021


#50790: REST API: Allow sending empty array to remove all values for single = false
meta
-------------------------------------------------+-------------------------
 Reporter:  chrisvanpatten                       |       Owner:
                                                 |  TimothyBlynJacobs
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  REST API                             |     Version:  4.7
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:  rest-api
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by TimothyBlynJacobs):

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


Comment:

 In [changeset:"49966" 49966]:
 {{{
 #!CommitTicketReference repository="" revision="49966"
 REST API: Allow sending an empty array to delete multi meta keys.

 Previously, only `null` was supported.

 Fixes #50790.
 Props chrisvanpatten.
 }}}

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


More information about the wp-trac mailing list