I went to Network Admin > Sites > clicked on a site and changed the site url for a child site. Now that site is gone altogether and I cannot get it back. What can I do now?
Leave a Reply
You must be logged in to post a comment.
I went to Network Admin > Sites > clicked on a site and changed the site url for a child site. Now that site is gone altogether and I cannot get it back. What can I do now?
You must be logged in to post a comment.
http://core.trac.wordpress.org/browser/tags/3.3.1/wp-admin/includes/ms.php#L46
Notice, how
drop
defaults tofalse
; this means that the blog tables are not removed. Deleting is triggered from over here: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-admin/ms-delete-site.php#L19 and nowhere else by default. Unless you have a plugin that forces drops on the tables there’s still a chance to recover something.First of all backup the database before attempting anything.
To get the blog to be displayed in the list you have to reverse the following action:
You can do this manually via MySQL:
Or
update_blog_status( ##, 'deleted', 0 );
in your functions.php once.The users will, unfortunately be gone, due to this in a loop:
…performing even if the tables aren’t dropped.
The rest – settings, files, etc. should be all intact.
Good luck.