Make WordPress Core

Changeset 52816


Ignore:
Timestamp:
03/03/2022 03:56:07 PM (22 months ago)
Author:
SergeyBiryukov
Message:

Networks and Sites: Suggest wp_initialize_site as an alternative for the deprecated wpmu_new_blog action.

The previously suggested alternative, wp_insert_site, does not get passed enough arguments and runs before the new site initialization routine is actually executed.

Follow-up to [43654].

Props asaquzzaman, henry.wright, MadtownLems.
Fixes #49612.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-site.php

    r52707 r52816  
    137137            array( $new_site->id, $user_id, $new_site->domain, $new_site->path, $new_site->network_id, $meta ),
    138138            '5.1.0',
    139             'wp_insert_site'
     139            'wp_initialize_site'
    140140        );
    141141    }
Note: See TracChangeset for help on using the changeset viewer.