Support » Plugin: Multisite Cloner » bug on copy file

  • Resolved brnnrc

    (@brnnrc)



    Hi,
    I found a bug creating th $old_uploads variabe.
    If the path contains the same number of the $blog_id, it replace all the occurrences and brakes the path.
    Eg. if the path is /var/www/clients/client15/web206/web and the $blog_id is 10, $old_uploads became /var/www/clients/client15/web106/web/wp-content/uploads/sites/10

    simple patch to replace the site id only:
    $old_uploads = str_ireplace("/sites/".$blog_id, "/sites/".$id_default_blog, $base_dir);

    Bye
    Enrico

    https://wordpress.org/plugins/multisite-cloner/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘bug on copy file’ is closed to new replies.