=== Multisite Post Duplicator ===

Contributors: MagicStick
Tags: multisite, multi site, duplicate, copy, post, page, meta, individual, clone
Requires at least: 3.7
Tested up to: 4.7
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Duplicate/Copy/Clone any individual page, post or custom post type from one site on your multisite network to another.

== Description ==

Duplicate/Copy/Clone any individual page, post or custom post type from one site on your multisite network to another.

Features

*   Copies all custom fields
*   Copies all related post meta
*   Includes any custom post type on your network as long as the post type exists in your destination site
*   Copies any featured image
*   Copies all image media within post content to the new site's media library for exclusive use in the destination site 
*   Copies associated tags
*   Copies post categories. If the category doesn't exist in the destination site then the category is created and assigned to the post
*   Copies post taxonomy terms. This behaviour assumes that the taxonomies being duplicated have been registered on the destination site.
*	Create a duplication link so if you ever update the source post again it will automatically update the duplicated page also
*	Activity Log. View information on all dulications performed within your network
*	Batch Duplication
*	When using the batch duplication tool if a parent and child are in the duplicate batch then the relationship will be maintained in the desitination site
*	Settings page to customise the default behaviour
*	Restrict functionality to only certain sites on your network
*	Restrict functionality to users of certain roles
*   Clean and friendly User Interface
*   Select what status you want your new copy of post to be i.e Published, Draft etc
*   Specify a prefix for the new post to avoid confusion
*   Works with Advanced Custom Fields
*	Create your own addons! Multisite Post Duplicator is now fully extendable. Create your own functionality. Check out the API [documentation](http://www.wpmaz.uk/mpddocs/). Check out a list of hooks you can use (http://www.wpmaz.uk/multisite-post-duplicator-actions-and-filters/).
*	Choose to ignore specific post meta keys in the duplication process

== Installation ==

1. Upload `multisite-post-duplicator` folder to your `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Customise the default behaviour by going to Setting > Multisite Post Duplicator Settings

== Frequently Asked Questions ==

= Does this only work on a multisite network? =

Yes.

= Can I copy custom post types? =

Yes.

= What about post meta? Will these be copied over? =

Yes.

= Does this work with advanced custom fields? =

Yes. However, you have to have the same custom fields defined in each of the sites on your network. To help keep the fields in sync try: https://wordpress.org/plugins/acf-multisite-sync/

= What about Multisites on Subdomain Configurations? =

Unfortunately we don't support sub domain configuations at this time. You may use it to some extent, but a lot of this plugins features may produce unexpected results. Our plan is to introduce support for this in the near futute.

== Screenshots ==

1. Meta Box
2. Setting Page
3. Batch Duplication
4. Duplication Tool

== Changelog ==

= 1.2 =
* NEW: When using the batch duplication tool if a parent and child are in the duplicate batch then the relationship will be maintained in the desitination site.
* UI Improvements
* Corrected some typos

= 1.1.3 =
* Fixed issue with our custom database table not being created on activation of plugin

= 1.1.2 =
* Fixed 'create link to an existing post' functionality only displaying 'Post' Post-Type results

= 1.1.1 =
* Fixed issue with linked posts not looking at the 'ignore most meta keys' setting.
* Improved efficiency of core duplication function.
* Queries to our 'Linked Duplications' db table are now correctly wrapped in wpdb::prepare() to protect from injection hacks.
* Fixed issue where networks with more than 100 sites would have some sites not listed in thier controls (for installs > 4.6)
* Fixed issue where other plugin's meta data (that are using the 'save_post' action) might be missed during the duplication
* General performanace improvements

= 1.1 =
* NEW: Create a link to an existing post!
* Removed unneeded version parameters on enqueued css and javascript files.
* Improved reliability of 'version compare' function used in determining user settings.

= 1.0.2 =
* Fixed text domain issue for translations.

= 1.0.1 =
* Fixed activation error for some users.

= 1.0 =
Bringing Multisite Post Duplicator into Version 1.0 with a massive update. Really excited to provide this new, continually requested, functionality:

* NEW: Link a duplication!
	* If you create a link between the original post and it's 'duplicated post' then whenever you update the original post the 'duplicated post' will be updated also! Simply check the box 'Create Duplication Link' on the MPD metabox before processing your duplication
	* View and edit your linked posts via a handy user interface
	* View all posts that a post is linked to via a new MPD Metabox
	* Behaviour can be turned off in settings
	* Loads of new filters and actions to help developers customise this functionality
* NEW: Duplication activity log!
	* Keep track of all posts that have been duplicated within your multisite network.
	* Behaviour can be turned off in settings
* NEW: Settings page has been cleaned up. Looks a lot lets cluttered.
* Added: Filter 'mpd_list_metabox_priority' and  for developers to change priority of MPD Metaboxes
* Fixed: Error on activation of plugin in a non-multisite installation.
* Fixed: Problems with the setup to allow plugin translations

= 0.9.5.1 = 
* Fixed critical error experienced by some users from update v0.9.5

= 0.9.5 =
* Subdomain warning message can now be dissmissed. Also has improved signposting.

= 0.9.4 =
* NEW: Added setting to let you retain the source post publish date if you wish.
* NEW: Added font-awesome for some nice icons in our UI
* Added signposting for users trying to use this plugin on a subdomain configuration.
* Fixed various typos and spelling mistakes throughout the plugin.
* Added new action 'mpd_extend_activation' so developers may hook into the plugin's activation process.

= 0.9.3 =
* NEW: Support for WordPress' new WP_Site_Query (get_sites()) class.
* Fixed issue with featured images not copying over for some users (thanks joedev91).
* Fixed issue with unwanted post meta upon duplication process (thanks joedev91).

= 0.9.2 =
* Fixed php warnings experienced by some users

= 0.9.1 =
* Fixed bug where restricted sites were still showing up on the MPD metabox list.
* Fixed bug where batch duplication functionality was lost when viewing a page list 'search results'.
* Fixed issue that could cause users to lose some settings when upgrading.

= 0.9 =
* NEW (finally): Copy post taxonomy terms. This behaviour assumes that the taxonomies terms being duplicated are from taxonomies that are registered on the destination site.
* NEW: Add list of post meta keys to ignore in settings.
* Fixed bug where category wouldn't copy if the term id didn't marry up with the destination term id.
* Fixed bug where categories with special characters would cause unexpected results
* Some UI improvements
* Added 'mpd_source_data' filter to allow hooking into the source post data

= 0.8 =
* NEW: Copy post categories. If the category doesn't exist in the destination site then the category is created and assigned to the post (Can be turned on or off in Settings).

= 0.7.4 =
* Added filter to allow access to post statuses. See support thread https://wordpress.org/support/topic/small-request-1 for details. 

= 0.7.3 =
* Added sign-posting if user activates this plugin on a non multisite wordpress installation.

= 0.7.2 =
* Fix for file_get_content() not collecting image data on multisites running SSL that store files without a protocol. Thanks Pedro Freitas!

= 0.7.1 =
* NEW: Restrict access to this plugin's functionality to users with certain roles.

= 0.6.1 =
* Fixed issue with excerpts not copying
* Improved access to 'mpd_show_settings_page' filter

= 0.6 =
* NEW: Create your own addons! Multisite Post Duplicator is now fully extendable. Create your own functionality. Check out the API [documentation](http://www.wpmaz.uk/mpddocs/). And here is a list of hooks you can use: (http://www.wpmaz.uk/multisite-post-duplicator-actions-and-filters/). We've even created a couple of core addons if you want have nosey at how they are hooked in.
* NEW CORE ADDON: Batch Duplication! You can now duplicate several pages at a time from the post/page list screen.
* NEW CORE ADDON: Restrict MPD! You can now restrict the ability to duplicate from certain sites on your network.
* FIXED: Issue with generated destination URL of attached media from root site.

= 0.5.2 =
* Fixed issues with attached media files when duplicating a page that has aleady been duplicated
* Fixed issues with featured images when duplicating a page that has aleady been duplicated

= 0.5.1 =
* Fixed site path showing incorrectly in new image url (cosmetic change to avoid confusion, both resolve to same location)

= 0.5 =
* NEW: Now copies featured images from posts (can be turned off in Settings page)
* NEW: Now copies any image media within the post content to the destination site (can be turned off in Settings page).
* NEW: Now copies post tags (can be turned off in Settings page)
* NEW: Admin notice on success of duplication. Has a link to go straight to the new post
* NEW: Submit button on WordPress post edit page will now update to show that a duplication has been requested
* FIXED: Fixed User prefix having unintentional double space in some scenarios
* Settings page now global for all sites in the multisite network
* Cleaned up Settings page and added tooltips
* Prepared plugin for localisation (any translators welcome to contact me please!)
* Cleaned code for improved efficiency

= 0.4.1 =
* Now handles custom post statuses.

= 0.4 =
* Added Meta Box within the post type so you can now duplicate your post to another site on your network as you work (Thanks to Sergi Ambel!).
* Added Settings page to customise default behaviour.

= 0.3.1 =
* Fixed Activation errors.

= 0.3 =
* You can now filter by 'any' post type.

= 0.2.1 =
* Fixed bug where all posts were not appearing in certain scenarios

= 0.2 =
* Added support for Contact Form 7
* Duplication now correctly deals with serialised post meta

= 0.1 =
* Initial Release

== Upgrade Notice ==

= 0.1 =
Initial release
