Title: Multisite Focused Changes in 4.5
Author: Jeremy Felt
Published: March 9, 2016

---

 [  ](https://profiles.wordpress.org/jeremyfelt/) [Jeremy Felt](https://profiles.wordpress.org/jeremyfelt/)
7:05 am _on_ March 9, 2016     
Tags: [4.5 ( 60 )](https://make.wordpress.org/core/tag/4-5/),
[dev-notes ( 660 )](https://make.wordpress.org/core/tag/dev-notes/), [multisite ( 90 )](https://make.wordpress.org/core/tag/multisite/)

# Multisite Focused Changes in 4.5

Howdy! The 4.5 release cycle was relatively quiet for multisitemultisite Used to
describe a WordPress installation with a network of multiple blogs, grouped by sites.
This installation type has shared users tables, and creates separate database tables
for each blog (wp_posts becomes wp_0_posts). See also **network**, **blog**, **site**,
though we still managed to knock out a few good things. The following is a brief
rundown of each, full details can be found in the [full list of multisite focused changes](https://core.trac.wordpress.org/query?focuses=~multisite&milestone=4.5&group=milestone&col=id&col=summary&col=milestone&col=status&col=owner&col=type&col=priority&order=priority)
for 4.5. 💫

### Introduce WP_Site

The global `$current_blog` has always been used as a way to store the properties
in a `stdClass` object of the current site during bootstrap. With the introduction
of `WP_Site`, we add some definition and have a more proper object to pass around.
Sweet.

Take a look at `ms-settings.php` if you are using a custom sunrise.php to populate
the `$current_blog` global. We now create a `WP_Site` object from the existing `
$current_blog` if it has been populated elsewhere. This is a backward compatible
change, though should be tested wherever your code interacts with `$current_blog`,
especially if anything has been done to extend its structure.

This last paragraph may sound familiar to you because I copied it from the notes
on the work we did in the [4.4 release](https://make.wordpress.org/core/2015/10/28/multisite-focused-changes-in-4-4/)
to add `WP_Network` as an object. In future releases, we’ll continue to build these
out with query classes as well.

See [#32450](https://core.trac.wordpress.org/ticket/32450) for all the details.

### New Actions and Filters

 * `network_user_new_form` fires at the end of the networknetwork (versus site, 
   blog)’s Add New User form. [#15389](https://core.trac.wordpress.org/ticket/15389)
 * `network_site_new_form` fires at the end of the network’s Add New Site form. 
   [#34739](https://core.trac.wordpress.org/ticket/34739)
 * `network_allowed_themes` and `site_allowed_themes` allow for more granular filtering
   of the themes allowed for a site. The legacy `allowed_themes` will continue to
   do its job. [#28436](https://core.trac.wordpress.org/ticket/28436)
 * `pre_network_site_pre_created_user` fires right before a new user is created 
   during the Add New Site process if one does not already exist. [#33631](https://core.trac.wordpress.org/ticket/33631)

### Other interesting things

 * Use a usermeta key rather than a site option keyed to the user ID when a user
   changes their email address and confirmation is needed. [#23358](https://core.trac.wordpress.org/ticket/23358)
 * In subdomain installations, if a user attempted to login to a site they did not
   have access to on the network, they would be shown an access denied message with
   a list of authorized sites. This differed from the behavior in subdirectory installs,
   where the user would be redirected to either their profile page or the dashboard
   of their primary site. In 4.5, the subdomain behavior now matches the subdirectory
   behavior. [#30598](https://core.trac.wordpress.org/ticket/30598)
 * The performance of `wp_upload_dir()` has been improved, specifically via persistent
   cache. This isn’t necessarily multisite related, though you should probably be
   familiar with the change. [#34359](https://core.trac.wordpress.org/ticket/34359)
 * Show the `home` URLURL A specific web address of a website or web page on the
   Internet, such as a website’s URL www.wordpress.org rather than `siteurl` in `
   site-info.php` and use the text “Site Address (URL)” for consistency with the
   similar site in single site. [#35632](https://core.trac.wordpress.org/ticket/35632)
 * Provide an “Edit user” link after adding a new user to a site or network. [#35705](https://core.trac.wordpress.org/ticket/35705)
   😻

And that’s about it. There may still be some bugbug A bug is an error or unexpected
result. Performance improvements, code optimization, and are considered enhancements,
not defects. After feature freeze, only bugs are dealt with, with regressions (adverse
changes from the previous version) being the highest priority. fixing in the next
week or so, but only if you get out there and test trunktrunk A directory in Subversion
containing the latest development code in preparation for the next major release
cycle. If you are running "trunk", then you are on the latest revision. against 
your plugins, themes, and crazy configurations. Have at it!

[#4-5](https://make.wordpress.org/core/tag/4-5/), [#dev-notes](https://make.wordpress.org/core/tag/dev-notes/),
[#multisite](https://make.wordpress.org/core/tag/multisite/)

### Share this:

 * [  Threads ](https://make.wordpress.org/core/2016/03/09/multisite-focused-changes-in-4-5/?share=threads)
 * [  Mastodon ](https://make.wordpress.org/core/2016/03/09/multisite-focused-changes-in-4-5/?share=mastodon)
 * [  Bluesky ](https://make.wordpress.org/core/2016/03/09/multisite-focused-changes-in-4-5/?share=bluesky)
 * [  X ](https://make.wordpress.org/core/2016/03/09/multisite-focused-changes-in-4-5/?share=x)
 * [  Facebook ](https://make.wordpress.org/core/2016/03/09/multisite-focused-changes-in-4-5/?share=facebook)
 * [  LinkedIn ](https://make.wordpress.org/core/2016/03/09/multisite-focused-changes-in-4-5/?share=linkedin)

# Post navigation

[← Link modal (wpLink) changes in WordPress 4.5](https://make.wordpress.org/core/2016/03/08/link-modal-wplink-changes-in-wordpress-4-5/)

[Beta 3 is Coming: Trac Ticket Owners, Please Update Your Tickets →](https://make.wordpress.org/core/2016/03/09/beta-3-is-coming-trac-ticket-owners-please-update-your-tickets/)