{"id":29800,"date":"2014-05-30T21:09:06","date_gmt":"2014-05-30T21:09:06","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/multisite-cloner\/"},"modified":"2016-11-18T20:45:04","modified_gmt":"2016-11-18T20:45:04","slug":"multisite-cloner","status":"publish","type":"plugin","link":"https:\/\/af.wordpress.org\/plugins\/multisite-cloner\/","author":67900,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.2.2.1","stable_tag":"trunk","tested":"4.6.30","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Multisite Cloner","header_author":"Manuel Razzari, Patricio Tarantino","header_description":"","assets_banners_color":"598ea5","last_updated":"2016-11-18 20:45:04","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/multisite-cloner","header_author_uri":"http:\/\/tipit.net","rating":4.7,"author_block_rating":0,"active_installs":100,"downloads":35158,"num_ratings":29,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.2.2.1":"<ul>\n<li>Fixed minor bug introduced in the previous version.<\/li>\n<\/ul>"},"ratings":{"1":2,"2":0,"3":0,"4":1,"5":26},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1067125","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1067125","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"924020","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"924023","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1531715","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"924018","resolution":"2","location":"assets"}},"screenshots":{"1":"<p><strong>Select a default site.<\/strong> It will be cloned when any new site is created.<\/p>","2":"<p><strong>Clone any site.<\/strong> From the Sites list, admins can easily clone any site in the Network.<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2814,2738,44399,441,2255],"plugin_category":[51],"plugin_contributors":[89474,88314],"plugin_business_model":[],"class_list":["post-29800","plugin","type-plugin","status-publish","hentry","plugin_tags-clone","plugin_tags-copy","plugin_tags-copy-blog","plugin_tags-multisite","plugin_tags-wpmu","plugin_category-multisite","plugin_contributors-manuelrazzari","plugin_contributors-pmtarantino","plugin_committers-manuelrazzari","plugin_committers-pmtarantino"],"banners":{"banner":"https:\/\/ps.w.org\/multisite-cloner\/assets\/banner-772x250.jpg?rev=924023","banner_2x":"https:\/\/ps.w.org\/multisite-cloner\/assets\/banner-1544x500.jpg?rev=924020","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/multisite-cloner\/assets\/icon-128x128.png?rev=1067125","icon_2x":"https:\/\/ps.w.org\/multisite-cloner\/assets\/icon-256x256.png?rev=1067125","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/multisite-cloner\/assets\/screenshot-1.png?rev=1531715","caption":"<p><strong>Select a default site.<\/strong> It will be cloned when any new site is created.<\/p>"},{"src":"https:\/\/ps.w.org\/multisite-cloner\/assets\/screenshot-2.png?rev=924018","caption":"<p><strong>Clone any site.<\/strong> From the Sites list, admins can easily clone any site in the Network.<\/p>"}],"raw_content":"<!--section=description-->\n<p>In WordPress Multisite, new sites get a boring default template, without any custom settings or starter content.<\/p>\n\n<p>This plugin allows you to select a specific blog on your network, a \"master\" one, that will be cloned every time a new blog is created.<\/p>\n\n<p>In this way, new blogs will contain all posts, uploads, theme settings and plugin options from the master blog.<\/p>\n\n<h4>How does it work?<\/h4>\n\n<ol>\n<li>It uses MySQL <code>INSERT INTO ... SELECT<\/code> to copy <em>every<\/em> table from the \"master\" blog into the new one. This is fast!<\/li>\n<li>Then it does a search and replace on the new blog's tables, to replace the old URL with the new one. \nThis is done in a way that respects serialized arrays, so your plugin's settings will be preserved.\n(We used a heavily trimmed down version of Interconnect\/IT's <a href=\"https:\/\/github.com\/interconnectit\/Search-Replace-DB\">Search and Replace<\/a> tool for that, so go thank them for this!)<\/li>\n<li>It proceeds to copy all files from the <code>wp-content\/uploads<\/code> dir of your master blog into the new one's, so that all assets will work as expected.<\/li>\n<li>Finally it does some house clean-up, updating the new blog's title, admin email, and user roles as needed.<\/li>\n<\/ol>\n\n<p>Go check the screenshots, it's really simple and does what it says. \nGive it a try!<\/p>\n\n<p><em>This plugin was handcrafted with love and \u2018yerba mate\u2019 by the team at <a href=\"http:\/\/www.tipit.net\/\" title=\"Sustainable Web development since 1996 in Austin, Texas\">Tipit.net<\/a>.<\/em><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>multisite-cloner<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Network-activate the plugin through the 'Plugins' menu in your Network admin.<\/li>\n<li>In your Network admin, go to Settings &gt; Multisite Cloner<\/li>\n<\/ol>\n\n<p>You'll probably want to create a \"master\" blog to clone from, if you don't have one already.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Can I clone the main site?<\/dt>\n<dd><p>No. The main site in your network (usually the one with ID = 1) contains many DB tables, assets and even sensitive information that shouldn't be replicated to other blogs.<\/p><\/dd>\n<dt>Can I clone my blog in a single-site WP install?<\/dt>\n<dd><p>No. The whole point of this plugin is to clone blogs within a Multisite network.<\/p><\/dd>\n<dt>Really?<\/dt>\n<dd><p>We couldn't come up with more questions. Go ahead and ask us some questions and we'll add the frequent ones here :)<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>0.2.2.1<\/h4>\n\n<ul>\n<li>Fixed syntax error introduced in 0.2.2. (Props to @infotexsupport for reporting this.)<\/li>\n<li>Settings dropdown: include site path, set max-width.<\/li>\n<\/ul>\n\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>WP 4.6 compat: use get_sites and get_network. (Props to @dima-stefantsov for reporting this.)<\/li>\n<li>Fixed a bug with unserialized object cloning (Props to @icryptic, @techiechic, @t2m and @dberdal for reporting it, and thanks to @interconnectit for the actual fix!)<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>Bug fix: when \"Allow new registrations\" is enabled and a user activates a new blog from the front-end, the wrong footer would be displayed on <code>wp-activate.php<\/code>. Thanks to Schalk Joubert who <a href=\"https:\/\/wordpress.org\/support\/topic\/using-a-cloned-site-as-default-site\">insisted<\/a> on this bug.<\/li>\n<li>Minor UI tweaks to Settings<\/li>\n<li>Tested and updated WP version support.<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>New feature: optionally clone users from the master blog. As <a href=\"https:\/\/wordpress.org\/support\/topic\/plugin-works-great-but-doesnt-copy-users-from-master\">suggested by @wppower<\/a>.<\/li>\n<\/ul>\n\n<h4>0.1.13<\/h4>\n\n<ul>\n<li>Disable cloning of the Main blog from the All Sites network admin.<\/li>\n<\/ul>\n\n<h4>0.1.12<\/h4>\n\n<ul>\n<li>This plugin now works on an install <a href=\"https:\/\/wordpress.org\/support\/topic\/bug-on-copy-file\">path that includes numbers<\/a> (avoid collisions with blogs ids), and <a href=\"https:\/\/wordpress.org\/support\/topic\/https-fails-cloner_db_replacer\">supports HTTPS blogs too<\/a>.<\/li>\n<\/ul>\n\n<h4>0.1.11.1<\/h4>\n\n<ul>\n<li>Fixes minor <a href=\"https:\/\/wordpress.org\/support\/topic\/error-while-adding-a-new-site\">problem with the clone recursive copy function<\/a><\/li>\n<\/ul>\n\n<h4>0.1.11<\/h4>\n\n<ul>\n<li>Fixes <a href=\"https:\/\/wordpress.org\/support\/topic\/pull-request-error-while-copying-a-dir-while-cloning\">problem with non-existents dirs<\/a><\/li>\n<\/ul>\n\n<h4>0.1.10<\/h4>\n\n<ul>\n<li>This version works with the latest Wordpress release (Wordpress 4.0.0)<\/li>\n<\/ul>\n\n<h4>0.1.9<\/h4>\n\n<ul>\n<li>Bug fix: Images in post were linked to the original blog.<\/li>\n<\/ul>\n\n<h4>0.1.8<\/h4>\n\n<ul>\n<li>Minor fix to avoid PHP warning if target directories already exist (Fixes <a href=\"http:\/\/wordpress.org\/support\/topic\/error-when-creating-new-site\">warning when creating new site<\/a> reported by mr.gengu and beda69).<\/li>\n<\/ul>\n\n<h4>0.1.7.1<\/h4>\n\n<ul>\n<li>Minor typo fix (Fixes <a href=\"http:\/\/wordpress.org\/support\/topic\/error-on-network-activation\">error on network activation<\/a> reported by ammienoot)<\/li>\n<\/ul>\n\n<h4>0.1.7<\/h4>\n\n<ul>\n<li>The plugin now works on directory-based installs (Fixes <a href=\"http:\/\/wordpress.org\/support\/topic\/duplicates-file-path\">problem with duplicate file path<\/a> reported by JigMedia)<\/li>\n<li>Handle case of new networks that still haven't created any sites to clone from.<\/li>\n<\/ul>\n\n<h4>0.1.6<\/h4>\n\n<ul>\n<li>Fixes user roles error on installs with a non-default db prefix. (Fixes <a href=\"http:\/\/wordpress.org\/support\/topic\/problem-with-user-roles-after-cloning-a-subdomain\">problem with user roles after cloning<\/a> reported by B_Dark)<\/li>\n<\/ul>\n\n<h4>0.1.5<\/h4>\n\n<ul>\n<li>Independence of the uploads directory structure. (Fixes <a href=\"http:\/\/wordpress.org\/support\/topic\/gives-warning-after-creating-subdomain-site\">warning after creating subdomain site<\/a> reported by Pradip Nichite)<\/li>\n<\/ul>\n\n<h4>0.1.4<\/h4>\n\n<ul>\n<li>First public release.<\/li>\n<li>Disabled cloning of the main site in the network. Risky stuff.<\/li>\n<li>Added \"Dolly The Cloner\" graphic by rock-star designer Diana Stilinovic.<\/li>\n<\/ul>\n\n<h4>0.1.3<\/h4>\n\n<ul>\n<li>Added settings page.<\/li>\n<li>Added shortcut to clone any blog in the network.<\/li>\n<li>Refactored into a plugin class.<\/li>\n<li>Refactored DB replacer to use wpdb functions instead of obsolete mysql_* calls.<\/li>\n<\/ul>\n\n<h4>0.1.2<\/h4>\n\n<ul>\n<li>Replaced calls to functionality in the underlying OS (mysql, sed) with raw SQL, for greater portability.<\/li>\n<\/ul>\n\n<h4>0.1.1<\/h4>\n\n<ul>\n<li>Initial version, on a client site.<\/li>\n<\/ul>","raw_excerpt":"When creating a new blog on WordPress Multisite, copies all the posts, settings and files, from a selected blog into the new one.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/29800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=29800"}],"author":[{"embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/manuelrazzari"}],"wp:attachment":[{"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=29800"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=29800"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=29800"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=29800"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=29800"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/af.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=29800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}