[wp-trac] [WordPress Trac] #44467: Ensure meta wrapper functions do not contain additional logic

WordPress Trac noreply at wordpress.org
Wed Dec 12 03:02:04 UTC 2018


#44467: Ensure meta wrapper functions do not contain additional logic
-------------------------------------------------+-------------------------
 Reporter:  flixos90                             |       Owner:  flixos90
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.0
Component:  Options, Meta APIs                   |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  2nd-opinion has-patch has-unit-      |     Focuses:  multisite,
  tests fixed-5.0                                |  rest-api
-------------------------------------------------+-------------------------
Changes (by jeremyfelt):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"43982" 43982]:
 {{{
 #!CommitTicketReference repository="" revision="43982"
 REST API: Move object type-specific metadata integrations from the wrapper
 functions to the low-level Meta API functions.

 Object type-specific actions that should happen before or after
 modification of metadata have so far been part of the respective wrapper
 functions. By using action and filter hooks, this changeset ensures they
 are always executed, even when calling the lower-level Meta API functions
 directly, which the REST API does as a prime example.

 Merges [43729] to trunk.

 Props flixos90, spacedmonkey.
 Fixes #44467.
 }}}

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


More information about the wp-trac mailing list