Version Description
- Improved meta duplication
- Fixed copy issues with Elementor templates and pages
- Improved look of Elementor duplicates (they should be perfect now)
- Updated carrousel
- Fixed conflicts of other plugins that blocks access to our settings
Download this release
Release Info
Developer | iclyde |
Plugin | Duplicate Post |
Version | 1.2.9 |
Comparing to | |
See all releases |
Code changes from version 1.2.8 to 1.2.9
- copy-delete-posts.php +2 -2
- post/handler.php +9 -3
- readme.txt +15 -7
copy-delete-posts.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin Name: Copy & Delete Posts
|
5 |
* Plugin URI: https://copy-delete-posts.com
|
6 |
* Description: The best solution to easily make duplicates of your posts & pages, and delete them in one go.
|
7 |
-
* Version: 1.2.
|
8 |
* Author: Copy Delete Posts
|
9 |
* Author URI: https://copy-delete-posts.com/
|
10 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
@@ -30,7 +30,7 @@ analyst_init(array(
|
|
30 |
* @since 1.0.0
|
31 |
*/
|
32 |
// Plugin constants
|
33 |
-
define('CDP_VERSION', '1.2.
|
34 |
define('CDP_WP_VERSION', get_bloginfo('version'));
|
35 |
define('CDP_SCRIPT_DEBUG', false);
|
36 |
define('CDP_ROOT_DIR', __DIR__);
|
4 |
* Plugin Name: Copy & Delete Posts
|
5 |
* Plugin URI: https://copy-delete-posts.com
|
6 |
* Description: The best solution to easily make duplicates of your posts & pages, and delete them in one go.
|
7 |
+
* Version: 1.2.9
|
8 |
* Author: Copy Delete Posts
|
9 |
* Author URI: https://copy-delete-posts.com/
|
10 |
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
30 |
* @since 1.0.0
|
31 |
*/
|
32 |
// Plugin constants
|
33 |
+
define('CDP_VERSION', '1.2.9');
|
34 |
define('CDP_WP_VERSION', get_bloginfo('version'));
|
35 |
define('CDP_SCRIPT_DEBUG', false);
|
36 |
define('CDP_ROOT_DIR', __DIR__);
|
post/handler.php
CHANGED
@@ -433,7 +433,7 @@ function cdp_insert_new_post($areWePro = false) {
|
|
433 |
$e = (mb_substr($meta, 0, 4) == '_wp_') ? true : false;
|
434 |
$f = ($meta == '_thumbnail_id' && $settings['f_image']) ? true : false;
|
435 |
$g = ($meta == '_cdp_origin') ? true : false;
|
436 |
-
$h = (
|
437 |
$i = ($areWePro && function_exists('cdpp_check_all_meta')) ? cdpp_check_all_meta($settings, $meta) : false;
|
438 |
|
439 |
// If any of above condition is true pass the meta tag
|
@@ -595,6 +595,12 @@ function cdp_insert_new_post($areWePro = false) {
|
|
595 |
if ($key == '_cdp_counter')
|
596 |
$val = $counter;
|
597 |
|
|
|
|
|
|
|
|
|
|
|
|
|
598 |
// Insert meta tag
|
599 |
$res = add_post_meta($id, $key, $val);
|
600 |
|
@@ -886,8 +892,8 @@ function cdp_insert_new_post($areWePro = false) {
|
|
886 |
$isSlowPerf = false;
|
887 |
}
|
888 |
|
889 |
-
// Check if the copy time of one page was slower than 0.
|
890 |
-
if ($copyTimePerOne > 0.
|
891 |
$isSlowPerf = true;
|
892 |
}
|
893 |
|
433 |
$e = (mb_substr($meta, 0, 4) == '_wp_') ? true : false;
|
434 |
$f = ($meta == '_thumbnail_id' && $settings['f_image']) ? true : false;
|
435 |
$g = ($meta == '_cdp_origin') ? true : false;
|
436 |
+
$h = (strpos($meta, 'elementor') === false) ? false : true;
|
437 |
$i = ($areWePro && function_exists('cdpp_check_all_meta')) ? cdpp_check_all_meta($settings, $meta) : false;
|
438 |
|
439 |
// If any of above condition is true pass the meta tag
|
595 |
if ($key == '_cdp_counter')
|
596 |
$val = $counter;
|
597 |
|
598 |
+
if (is_serialized($val)) {
|
599 |
+
$val = @maybe_unserialize($val);
|
600 |
+
} else {
|
601 |
+
$val = @wp_slash($val);
|
602 |
+
}
|
603 |
+
|
604 |
// Insert meta tag
|
605 |
$res = add_post_meta($id, $key, $val);
|
606 |
|
892 |
$isSlowPerf = false;
|
893 |
}
|
894 |
|
895 |
+
// Check if the copy time of one page was slower than 0.030 of second
|
896 |
+
if ($copyTimePerOne > 0.030) {
|
897 |
$isSlowPerf = true;
|
898 |
}
|
899 |
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: CopyDeletePosts, copydelete
|
3 |
Tags: Duplicate post, Copy posts, Copy pages, Duplicate posts, Duplicate pages, Clone posts, Clone pages, Delete posts, Delete pages, Duplicator, copy post, copy page
|
4 |
Requires at least: 4.6
|
5 |
-
Tested up to: 5.9.
|
6 |
-
Stable tag: 1.2.
|
7 |
License: GPLv3
|
8 |
Requires PHP: 5.6
|
9 |
|
@@ -173,6 +173,13 @@ Vietnamese: [Sao chép bài đăng, sao chép trang, sao chép bài đăng tùy
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
176 |
= 1.2.8 =
|
177 |
* Adjusted name of "Hiding Menu" option
|
178 |
* Tested up to WordPress 5.9.1
|
@@ -314,8 +321,9 @@ Vietnamese: [Sao chép bài đăng, sao chép trang, sao chép bài đăng tùy
|
|
314 |
* Initial release
|
315 |
|
316 |
== Upgrade Notice ==
|
317 |
-
= 1.2.
|
318 |
-
*
|
319 |
-
*
|
320 |
-
*
|
321 |
-
*
|
|
2 |
Contributors: CopyDeletePosts, copydelete
|
3 |
Tags: Duplicate post, Copy posts, Copy pages, Duplicate posts, Duplicate pages, Clone posts, Clone pages, Delete posts, Delete pages, Duplicator, copy post, copy page
|
4 |
Requires at least: 4.6
|
5 |
+
Tested up to: 5.9.3
|
6 |
+
Stable tag: 1.2.9
|
7 |
License: GPLv3
|
8 |
Requires PHP: 5.6
|
9 |
|
173 |
|
174 |
== Changelog ==
|
175 |
|
176 |
+
= 1.2.9 =
|
177 |
+
* Improved meta duplication
|
178 |
+
* Fixed copy issues with Elementor templates and pages
|
179 |
+
* Improved look of Elementor duplicates (they should be perfect now)
|
180 |
+
* Updated carrousel
|
181 |
+
* Fixed conflicts of other plugins that blocks access to our settings
|
182 |
+
|
183 |
= 1.2.8 =
|
184 |
* Adjusted name of "Hiding Menu" option
|
185 |
* Tested up to WordPress 5.9.1
|
321 |
* Initial release
|
322 |
|
323 |
== Upgrade Notice ==
|
324 |
+
= 1.2.9 =
|
325 |
+
* Improved meta duplication
|
326 |
+
* Fixed copy issues with Elementor templates and pages
|
327 |
+
* Improved look of Elementor duplicates (they should be perfect now)
|
328 |
+
* Updated carrousel
|
329 |
+
* Fixed conflicts of other plugins that blocks access to our settings
|