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

WordPress Trac noreply at wordpress.org
Mon Oct 15 11:45:19 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                                          |  rest-api
-------------------------------------------------+-------------------------
Changes (by flixos90):

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


Comment:

 In [changeset:"43729" 43729]:
 {{{
 #!CommitTicketReference repository="" revision="43729"
 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.

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

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


More information about the wp-trac mailing list