• Thank you for your great plugin. However, when we use your plugin to duplicate a site we get two PHP notices:

    Notice: wp_new_user_notification was called with an argument that is deprecated since version 4.3.1 with no alternative available

    Notice: wpmu_new_blog is deprecated since version 5.1.0! Use wp_insert_site instead.

    Would be nice if these notices could be fixed ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    I had the same issue. To fix edit the file

    multisite-clone-duplicator/lib/duplicate.php on line 124

    replace:

    wp_new_user_notification( $user_id, $password );

    with the:

    wp_new_user_notification( $user_id, null, 'both' );

    @ivanhala

    Yes, sure I can solve it by editing the plugin. But that is bad practice, you should never edit a plugin (because all your edits will get lost once the plugin is updated). So it would be best if the plugin owner can fix it and release an update.

    @rockfire

    >> But that is bad practice, you should never edit a plugin

    Sure, you are right. That’s only a temporary solution. I posted the code so that the author can use it for the quick fix

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Notices when duplicating a site’ is closed to new replies.