Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion wp-multi-network/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,12 @@ function add_network( $args = array() ) {
* @param int $new_network_id ID of the added network.
* @param array $r Full associative array of network arguments.
*
* @since 2.5.1
* @since 2.5.3
*/
do_action( 'added_network_blog', $new_blog_id, $new_network_id, $r );

// add new blog id as network meta data against the new network
$r['network_meta']['main_site'] = $new_blog_id;

if ( empty( $r['network_meta']['site_name'] ) ) {
$r['network_meta']['site_name'] = ! empty( $r['network_name'] )
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.