• Resolved nyzeta

    (@nyzeta)


    Hi.

    Thanks for a quite interesting plugin.
    A litte suggestion to your code makes it usefull for those who have multiple site_id in their setup.

    in file “inc/admin-ui.php”
    From line 180

    function mdp_get_site_on_network(){
    
    	$sites = wp_get_sites();
    
    	ob_start()?>

    Changing / adding this to:

    function mdp_get_site_on_network(){
    
    	$args = array('network_id' => null);
    
    	$sites = wp_get_sites($args);
    
    	ob_start()?>

    The ‘network_id => null makes wp_get_sites not limit to the default value of 1.

    https://www.ads-software.com/plugins/multisite-post-duplicator/

Viewing 1 replies (of 1 total)
  • Plugin Author MagicStick

    (@magicstick)

    Thanks for the suggestion nyzeta. I’ve just added this into the next release. Also added your code to postform_ui.php in function mpd_publish_top_right().

    Stay tuned, I have a release coming out in the next day or so with a MASSIVE amount of improvements/new features.

    Thanks for the interest in my plugin! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Multisite (site_id) compability’ is closed to new replies.