[wp-trac] [WordPress Trac] #40371: Issue in action update*_{$meta_type}_meta

WordPress Trac noreply at wordpress.org
Wed Apr 5 14:35:08 UTC 2017


#40371: Issue in action update*_{$meta_type}_meta
----------------------------+-----------------------------
 Reporter:  SGr33n          |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Users           |    Version:  4.7.3
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Hi,

 I'm just working on a plugin that make use of updated_{$meta_type}_meta
 action (updated_user_meta in my case), but looks like this action doesn't
 completely work.

 Taking a look at the code here
 https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-
 includes/meta.php#L267 I see in the related code that there is a foreach
 loop through meta_ids, but the called action also defines a $meta_key and
 a $_meta_value that are not looping, so they would always have the same
 value, even if the meta key is changing. This would happen if, e.g., that
 action is called after the user updated a few profile fields from the
 WordPress backend. Is this a bug?

 Thanks.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40371>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list