Plugin Directory

Changeset 1086472


Ignore:
Timestamp:
02/10/2015 03:17:17 PM (11 years ago)
Author:
pmtarantino
Message:

0.1.13: Disable to clone the Main Blog from the Network Sites.

Location:
multisite-cloner/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • multisite-cloner/trunk/multisite-cloner.php

    r1032609 r1086472  
    55 * Plugin URI: https://wordpress.org/plugins/multisite-cloner
    66 * Description: When creating a new blog on WordPress Multisite, copies all the posts, settings and files, from a selected blog into the new one.
    7  * Version: 0.1.12
     7 * Version: 0.1.13
    88 * Author: Manuel Razzari, Patricio Tarantino
    99 * Author URI: http://tipit.net
     
    266266
    267267    function add_clone_link( $actions, $blog_id ) {     
    268         $actions['clone'] = '<a href="'. network_admin_url( 'site-new.php' ).'?clone_from=' . $blog_id . '">Clone</a>';     
     268        $main_blog_id = $this->get_main_blog_id();
     269        if($main_blog_id != $blog_id):
     270            $actions['clone'] = '<a href="'. network_admin_url( 'site-new.php' ).'?clone_from=' . $blog_id . '">Clone</a>';     
     271        endif;
    269272        return $actions;
    270273    }
  • multisite-cloner/trunk/readme.txt

    r1032610 r1086472  
    6262== Changelog ==
    6363
     64= 0.1.13 =
     65* Disable to clone the Main Blog from the Network Sites.
     66
    6467= 0.1.12 =
    6568* This plugin now works on install on a [path that includes numbers](https://wordpress.org/support/topic/bug-on-copy-file) (avoid collisions with blogs ids), and [support https blogs too](https://wordpress.org/support/topic/https-fails-cloner_db_replacer).
     
    112115== Upgrade Notice ==
    113116
    114 = 0.1.12 =
    115 * This plugin now works on install on a path that includes numbers (avoid collisions with blogs ids), and support https blogs too.
     117= 0.1.13 =
     118* Disable to clone the Main Blog from the Network Sites.
Note: See TracChangeset for help on using the changeset viewer.