Changeset 1763939
- Timestamp:
- 11/11/2017 06:49:54 PM (8 years ago)
- Location:
- multisite-post-duplicator
- Files:
-
- 45 added
- 5 edited
-
tags/1.7.4 (added)
-
tags/1.7.4/README.md (added)
-
tags/1.7.4/addons (added)
-
tags/1.7.4/addons/bulkaction-mpd-addon.php (added)
-
tags/1.7.4/addons/posts-2-posts-addon.php (added)
-
tags/1.7.4/addons/restrictSites-mpd-addon.php (added)
-
tags/1.7.4/addons/roleAccess-mpd-addon.php (added)
-
tags/1.7.4/css (added)
-
tags/1.7.4/css/font-awesome.min.css (added)
-
tags/1.7.4/css/fonts (added)
-
tags/1.7.4/css/fonts/FontAwesome.otf (added)
-
tags/1.7.4/css/fonts/fontawesome-webfont.eot (added)
-
tags/1.7.4/css/fonts/fontawesome-webfont.svg (added)
-
tags/1.7.4/css/fonts/fontawesome-webfont.ttf (added)
-
tags/1.7.4/css/fonts/fontawesome-webfont.woff (added)
-
tags/1.7.4/css/fonts/fontawesome-webfont.woff2 (added)
-
tags/1.7.4/css/mpd-mb.css (added)
-
tags/1.7.4/css/mpd.css (added)
-
tags/1.7.4/css/select2-spinner.gif (added)
-
tags/1.7.4/css/select2.min.css (added)
-
tags/1.7.4/css/select2.png (added)
-
tags/1.7.4/css/select2x2.png (added)
-
tags/1.7.4/css/ti-ta-toggle.css (added)
-
tags/1.7.4/images (added)
-
tags/1.7.4/images/smile.png (added)
-
tags/1.7.4/images/tick.png (added)
-
tags/1.7.4/inc (added)
-
tags/1.7.4/inc/acf-functions.php (added)
-
tags/1.7.4/inc/admin-ui.php (added)
-
tags/1.7.4/inc/considerations.php (added)
-
tags/1.7.4/inc/core.php (added)
-
tags/1.7.4/inc/load-scripts.php (added)
-
tags/1.7.4/inc/media.php (added)
-
tags/1.7.4/inc/mpd-functions.php (added)
-
tags/1.7.4/inc/persist.php (added)
-
tags/1.7.4/inc/postform_ui.php (added)
-
tags/1.7.4/inc/settings-ui.php (added)
-
tags/1.7.4/js (added)
-
tags/1.7.4/js/admin-datatable-init.js (added)
-
tags/1.7.4/js/admin-scripts.js (added)
-
tags/1.7.4/js/admin-settings.js (added)
-
tags/1.7.4/js/admin.js (added)
-
tags/1.7.4/js/select2.min.js (added)
-
tags/1.7.4/mpd.php (added)
-
tags/1.7.4/readme.txt (added)
-
trunk/README.md (modified) (1 diff)
-
trunk/inc/core.php (modified) (4 diffs)
-
trunk/inc/mpd-functions.php (modified) (2 diffs)
-
trunk/mpd.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
multisite-post-duplicator/trunk/README.md
r1740522 r1763939 87 87 == Changelog == 88 88 89 = 1.7.5 = 90 * Permlink stucture now behaves as expected when copying post to the same site 91 * Publish date now persists on linked posts if requested (thanks again Iskren Ivov Chernev) 92 89 93 = 1.7.4 = 90 94 * Bug fixes -
multisite-post-duplicator/trunk/inc/core.php
r1730972 r1763939 66 66 } 67 67 68 //Permalink Setup 69 $post_name = $mpd_process_info['destination_id'] == $source_blog_id ? null : $mdp_post->post_name; 70 68 71 //Using the orgininal post object we now want to insert our any new data based on user settings for use 69 72 //in the post object that we will be adding to the destination site … … 77 80 'post_excerpt' => $mdp_post->post_excerpt, 78 81 'post_content_filtered' => $mdp_post->post_content_filtered, 79 'post_name' => $mdp_post->post_name82 'post_name' => $post_name 80 83 81 84 ), $mpd_process_info); … … 228 231 //Get the taxonomy terms for the post 229 232 $source_taxonomies = mpd_get_post_taxonomy_terms($persist_post->source_post_id, false, false); 233 234 //Permalink Setup 235 $post_name = $persist_post->destination_id == $source_blog_id ? null : $mdp_post->post_name; 230 236 231 237 //Using the orgininal post object we now want to insert our any new data based on user settings for use … … 240 246 'post_excerpt' => $mdp_post->post_excerpt, 241 247 'post_content_filtered' => $mdp_post->post_content_filtered, 242 'post_name' => $ mdp_post->post_name,248 'post_name' => $post_name, 243 249 'post_status' => $mdp_post->post_status 244 250 -
multisite-post-duplicator/trunk/inc/mpd-functions.php
r1740522 r1763939 1350 1350 1351 1351 /** 1352 * 1353 * If the user chooses to, this function will copy the publish date to the 1354 * copied post. 1355 * 1356 * @param $mdp_post Array of the destination post info prior to post being created in database 1357 * @param $persist_post Object of source post being duplicated 1358 * 1359 * @return array Modified $mpd_post that would be used for duplicate post creation 1360 */ 1361 function mpd_update_published_date($mpd_post, $persist_post) { 1362 1363 $options = get_option( 'mdp_settings' ); 1364 1365 if(isset($options['mdp_retain_published_date'])){ 1366 $mpd_post['post_date'] = get_post_field('post_date', $persist_post->source_post_id); 1367 } 1368 1369 return $mpd_post; 1370 1371 } 1372 1373 add_filter('mpd_setup_persist_destination_data', 'mpd_update_published_date', 10, 2); 1374 1375 1376 /** 1352 1377 * 1353 1378 * Do the markup for a link to MDP setting page … … 1772 1797 1773 1798 } 1799 -
multisite-post-duplicator/trunk/mpd.php
r1740522 r1763939 5 5 Plugin URI: http://www.wpmaz.uk 6 6 Description: Duplicate/Copy/Clone any individual page, post or custom post type from one site on your multisite network to another. 7 Version: 1.7. 47 Version: 1.7.5 8 8 Author: Mario Jaconelli 9 9 Author URI: http://www.wpmaz.uk -
multisite-post-duplicator/trunk/readme.txt
r1740522 r1763939 87 87 == Changelog == 88 88 89 = 1.7.5 = 90 * Permlink stucture now behaves as expected when copying post to the same site 91 * Publish date now persists on linked posts if requested (thanks again Iskren Ivov Chernev) 92 89 93 = 1.7.4 = 90 94 * Bug fixes
Note: See TracChangeset
for help on using the changeset viewer.