Wrong hook on new multisite blog
-
Version 3.2.7 of the plugin updated the hook for a new multisite blog from the deprecated
wpmu_new_blogtowp_insert_site. This hook is too early, triggering database errors as it attempts to insert options into a database table that does not yet exist.Instead of:
add_action( 'wp_insert_site', 'wpmem_mu_new_site' );It should be:
add_action( 'wp_initialize_site', 'wpmem_mu_new_site', 11 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Wrong hook on new multisite blog’ is closed to new replies.