New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wordpress Multisite #185
Comments
|
Is that a command-line switch? I don't see that in any docs or in the code. How would that be used? |
@jk3us I'm proposing it :) It'd do what you describe – use the specified table prefix except for the |
Ah, sounds good. You'd need a way to specify which site, I guess by numeric id. I think you can have the installation prefix in addition to the site prefix, e.g. wp_3_posts. |
@jk3us Hm, ok. I've never used a multisite before. Is the table prefix shared between them? So you have |
Looks like it, here is the code that returns the database table prefix for a site. http://doc-wordpress.com/nav.html?wp-includes/wp-db.php.source.html#l727 |
I have opened a pull request that will allow you to import specific sites from 3.4.2 |
In trying to import a single site that is part of a wordpress multisite instance, I had to make 1 small change in the source. In my case, I wanted to import the site that had the database table prefix
3_
(the id of the site is 3), but since multisite installations share a common set of users, and they are stored in the unprefixedusers
table, I just had to remove the #{px} for the users table on line 144 ofimporters/wordpress.rb
, and it seems to have worked well. Having a configuration option that could handle this case would be pretty nice.The text was updated successfully, but these errors were encountered: