WordPress.org

Ready to get started?Download WordPress

Forums

NS Cloner - Site Copier
[resolved] Wrong tables being cloned when using root (3 posts)

  1. bfintal
    Member
    Posted 2 months ago #

    in ns-cloner.php somewhere near line 751...

    $is_root_table = preg_match( "/$wpdb->prefix(?!\d+_)/", $table_name );

    This matches non-root table names, changing that line to this fixes it:

    $is_root_table = preg_match( "/$wpdb->base_prefix(?!\d+_)/", $table_name );

    https://wordpress.org/plugins/ns-cloner-site-copier/

  2. Never Settle
    Member
    Plugin Author

    Posted 2 months ago #

    Thanks! On todo.

  3. Never Settle
    Member
    Plugin Author

    Posted 3 days ago #

    V3 is out! It should address this and a host of other issues. Feedback always welcome.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.