WordPress.org

Forums

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

  1. bfintal
    Member
    Posted 1 year 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 1 year ago #

    Thanks! On todo.

  3. Never Settle
    Member
    Plugin Author

    Posted 10 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NS Cloner - Site Copier
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.