WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Benjamin Intal
    Member
    Posted 2 years 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 years ago #

    Thanks! On todo.

  3. Never Settle
    Member
    Plugin Author

    Posted 2 years 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.