[buddypress-trac] [BuddyPress Trac] #7984: Core multisite changes require mods to BP
buddypress-trac
noreply at wordpress.org
Fri Oct 5 14:32:00 UTC 2018
#7984: Core multisite changes require mods to BP
--------------------------+--------------------
Reporter: boonebgorges | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: Blogs | Version:
Severity: normal | Keywords:
--------------------------+--------------------
In preparation for 'site' support in the core REST API, WordPress has made
some internal changes surrounding site creation in Multisite. See
https://core.trac.wordpress.org/ticket/41333 and especially
https://core.trac.wordpress.org/changeset/43654 for details. Summary:
- The new canonical way to create a site is `wp_initialize_site()`, and
other methods (`wpmu_create_blog()` etc) will soon be converted to
wrappers and deprecated
- WPMU hooks like `wpmu_new_blog` are deprecated
In the medium term, we should migrate over to the new methods, though
doing this will require some WP capability sniffing. (For example, I'm not
sure of an elegant way to hook to `wpmu_new_blog` only if the new
`wp_initialize_site` hook is not available.)
In the short term, we should add deprecation notices to our automated
tests so that they pass.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7984>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list