[wp-trac] [WordPress Trac] #46351: Properly re-fill the `$meta` param of deprecated `wpmu_new_blog` action

WordPress Trac noreply at wordpress.org
Thu Mar 7 03:28:02 UTC 2019


#46351: Properly re-fill the `$meta` param of deprecated `wpmu_new_blog` action
--------------------------------+-------------------------
 Reporter:  david.binda         |       Owner:  jeremyfelt
     Type:  defect (bug)        |      Status:  reviewing
 Priority:  normal              |   Milestone:  5.1.1
Component:  Networks and Sites  |     Version:  5.1
 Severity:  normal              |  Resolution:
 Keywords:  has-patch commit    |     Focuses:  multisite
--------------------------------+-------------------------

Comment (by jeremyfelt):

 This looks good, thanks @davidbinda and @pbiron!

 Clarification for my own future sake:

 The `$meta` that was passed to `wpmu_create_blog()` prior to 5.1.0 was
 "promoted" (for lack of a better word) to top level keys in `$data` when
 passed to `wp_insert_site()` in 5.1.0+.

 The 5.1.0 back-compat handling for the `wpmu_new_blog` hook accounted for
 `$meta`, but only for data passed to the new `options` key (yet to be
 documented, see #45061).

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


More information about the wp-trac mailing list