[wp-trac] [WordPress Trac] #35652: update_metadata() does twice as many loops through pre/post update actions as needed

WordPress Trac noreply at wordpress.org
Fri Jan 29 04:51:13 UTC 2016


#35652: update_metadata() does twice as many loops through pre/post update actions
as needed
--------------------------+---------------------------
 Reporter:  Shelob9       |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.5
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+---------------------------
Changes (by boonebgorges):

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


Comment:

 In [changeset:"36420"]:
 {{{
 #!CommitTicketReference repository="" revision="36420"
 Simplify action placement in `update_metadata()`.

 By combining a number of `foreach` loops, we make the code more readable
 and
 potentially faster in the case where many metadata rows are being updated.

 Props Shelob9.
 Fixes #35652.
 }}}

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


More information about the wp-trac mailing list