Duplicate Post - Version 1.3.6

Version Description

  • Adjusted PHP compatibility
Download this release

Release Info

Developer iclyde
Plugin Icon wp plugin Duplicate Post
Version 1.3.6
Comparing to
See all releases

Code changes from version 1.3.5 to 1.3.6

analyst/src/Account/Account.php CHANGED
@@ -243,8 +243,8 @@ class Account implements TrackerContract
243
  {
244
  if (!$this->isAllowingLogging()) return;
245
 
246
- $question = isset($_POST['question']) ? stripslashes($_POST['question']) : null;
247
- $reason = isset($_POST['reason']) ? stripslashes($_POST['reason']) : null;
248
 
249
  DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
250
  ->execute($this->requestor);
243
  {
244
  if (!$this->isAllowingLogging()) return;
245
 
246
+ $question = isset($_POST['question']) ? sanitize_text_field(stripslashes($_POST['question'])) : null;
247
+ $reason = isset($_POST['reason']) ? sanitize_text_field(stripslashes($_POST['reason'])) : null;
248
 
249
  DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
250
  ->execute($this->requestor);
analyst/src/Collector.php CHANGED
@@ -153,7 +153,7 @@ class Collector
153
  */
154
  public function getServerIp()
155
  {
156
- return $_SERVER['SERVER_ADDR'];
157
  }
158
 
159
  /**
153
  */
154
  public function getServerIp()
155
  {
156
+ return sanitize_text_field($_SERVER['SERVER_ADDR']);
157
  }
158
 
159
  /**
analyst/src/Core/AbstractFactory.php CHANGED
@@ -12,7 +12,7 @@ abstract class AbstractFactory
12
  */
13
  protected static function unserialize($raw)
14
  {
15
- $instance = @unserialize($raw);
16
 
17
  $isProperObject = is_object($instance) && $instance instanceof static;
18
 
12
  */
13
  protected static function unserialize($raw)
14
  {
15
+ $instance = maybe_unserialize($raw);
16
 
17
  $isProperObject = is_object($instance) && $instance instanceof static;
18
 
analyst/src/Mutator.php CHANGED
@@ -95,7 +95,7 @@ class Mutator
95
  public function registerHooks()
96
  {
97
  add_action('wp_ajax_analyst_notification_dismiss', function () {
98
- $this->factory->remove($_POST['id']);
99
 
100
  $this->factory->sync();
101
  });
95
  public function registerHooks()
96
  {
97
  add_action('wp_ajax_analyst_notification_dismiss', function () {
98
+ $this->factory->remove(sanitize_text_field($_POST['id']));
99
 
100
  $this->factory->sync();
101
  });
analyst/templates/forms/deactivate.php CHANGED
@@ -3,12 +3,12 @@
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-deactivate-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block" style="width: 80px">
6
- <img src="<?=$pencilImage?>"/>
7
  </div>
8
  <div class="analyst-install-description-block" style="padding-left: 20px">
9
  <strong class="analyst-modal-header">Why do you deactivate?</strong>
10
  <div class="analyst-install-description-text" style="padding-top: 2px">
11
- Please let us know, so we can improve it! Thank you <img class="analyst-smile-image" src="<?=$smileImage?>" alt="">
12
  </div>
13
  </div>
14
  </div>
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-deactivate-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block" style="width: 80px">
6
+ <img src="<?php echo $pencilImage; ?>"/>
7
  </div>
8
  <div class="analyst-install-description-block" style="padding-left: 20px">
9
  <strong class="analyst-modal-header">Why do you deactivate?</strong>
10
  <div class="analyst-install-description-text" style="padding-top: 2px">
11
+ Please let us know, so we can improve it! Thank you <img class="analyst-smile-image" src="<?php echo $smileImage; ?>" alt="">
12
  </div>
13
  </div>
14
  </div>
analyst/templates/forms/install.php CHANGED
@@ -1,20 +1,20 @@
1
- <div id="analyst-install-modal" class="analyst-modal" style="display: none" analyst-plugin-id="<?=$pluginToInstall?>">
2
  <div class="analyst-modal-content" style="width: 450px">
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-install-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block">
6
- <img src="<?=$shieldImage?>"/>
7
  </div>
8
  <div class="analyst-install-description-block">
9
  <strong class="analyst-modal-header">Stay on the safe side</strong>
10
  <p class="analyst-install-description-text">Receive our plugin’s alerts in
11
- case of <strong>critical security</strong> & feature
12
  updates and allow non-sensitive
13
  diagnostic tracking.</p>
14
  </div>
15
  </div>
16
  <div class="analyst-modal-def-top-padding">
17
- <button class="analyst-btn-success" id="analyst-install-action">Allow & Continue ></button>
18
  </div>
19
  <div class="analyst-modal-def-top-padding" id="analyst-permissions-block" style="display: none">
20
  <span>You’re granting these permissions:</span>
1
+ <div id="analyst-install-modal" class="analyst-modal" style="display: none" analyst-plugin-id="<?php echo $pluginToInstall; ?>">
2
  <div class="analyst-modal-content" style="width: 450px">
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-install-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block">
6
+ <img src="<?php echo $shieldImage; ?>"/>
7
  </div>
8
  <div class="analyst-install-description-block">
9
  <strong class="analyst-modal-header">Stay on the safe side</strong>
10
  <p class="analyst-install-description-text">Receive our plugin’s alerts in
11
+ case of <strong>critical security</strong>, feature & special deal
12
  updates and allow non-sensitive
13
  diagnostic tracking.</p>
14
  </div>
15
  </div>
16
  <div class="analyst-modal-def-top-padding">
17
+ <button class="analyst-btn-success" id="analyst-install-action">Allow & Continue &lt;</button>
18
  </div>
19
  <div class="analyst-modal-def-top-padding" id="analyst-permissions-block" style="display: none">
20
  <span>You’re granting these permissions:</span>
analyst/templates/notice.php CHANGED
@@ -1,10 +1,10 @@
1
  <div class="notice notice-success analyst-notice">
2
  <p>
3
- <strong class="analyst-plugin-name"><?=$notice->getPluginName()?></strong>
4
- <?=$notice->getBody()?>
5
  </p>
6
 
7
- <button type="button" class="analyst-notice-dismiss notice-dismiss" analyst-notice-id="<?=$notice->getId()?>">
8
  <span class="screen-reader-text">Dismiss this notice.</span>
9
  </button>
10
  </div>
1
  <div class="notice notice-success analyst-notice">
2
  <p>
3
+ <strong class="analyst-plugin-name"><?php echo $notice->getPluginName(); ?></strong>
4
+ <?php echo $notice->getBody(); ?>
5
  </p>
6
 
7
+ <button type="button" class="analyst-notice-dismiss notice-dismiss" analyst-notice-id="<?php echo $notice->getId(); ?>">
8
  <span class="screen-reader-text">Dismiss this notice.</span>
9
  </button>
10
  </div>
analyst/templates/optout.php CHANGED
@@ -3,7 +3,7 @@
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-opt-out-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block" style="width: 120px">
6
- <img src="<?=$shieldImage?>"/>
7
  </div>
8
  <div class="analyst-install-description-block">
9
  <strong class="analyst-modal-header">By opting out, we cannot alert you anymore in case of important security updates.</strong>
3
  <div class="analyst-disable-modal-mask" id="analyst-disable-opt-out-modal-mask" style="display: none"></div>
4
  <div style="display: flex">
5
  <div class="analyst-install-image-block" style="width: 120px">
6
+ <img src="<?php echo $shieldImage; ?>"/>
7
  </div>
8
  <div class="analyst-install-description-block">
9
  <strong class="analyst-modal-header">By opting out, we cannot alert you anymore in case of important security updates.</strong>
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.3.5
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.3.5');
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.3.6
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.3.6');
34
  define('CDP_WP_VERSION', get_bloginfo('version'));
35
  define('CDP_SCRIPT_DEBUG', false);
36
  define('CDP_ROOT_DIR', __DIR__);
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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: 6.1.1
6
- Stable tag: 1.3.5
7
  License: GPLv3
8
  Requires PHP: 5.6
9
 
@@ -176,6 +176,10 @@ Vietnamese: [Sao chép bài đăng, sao chép trang, sao chép bài đăng tùy
176
  8. Copy from Gutenberg editor
177
 
178
  == Changelog ==
 
 
 
 
179
  = 1.3.5 =
180
  * Added black-friday theme (only for that period)
181
  * Tested up to WordPress 6.1.1
@@ -377,6 +381,7 @@ Vietnamese: [Sao chép bài đăng, sao chép trang, sao chép bài đăng tùy
377
  * Initial release
378
 
379
  == Upgrade Notice ==
380
- = 1.3.5 =
381
  * Added black-friday theme (only for that period)
382
  * Tested up to WordPress 6.1.1
 
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: 6.1.1
6
+ Stable tag: 1.3.6
7
  License: GPLv3
8
  Requires PHP: 5.6
9
 
176
  8. Copy from Gutenberg editor
177
 
178
  == Changelog ==
179
+
180
+ = 1.3.6 =
181
+ * Adjusted PHP compatibility
182
+
183
  = 1.3.5 =
184
  * Added black-friday theme (only for that period)
185
  * Tested up to WordPress 6.1.1
381
  * Initial release
382
 
383
  == Upgrade Notice ==
384
+ = 1.3.6 =
385
  * Added black-friday theme (only for that period)
386
  * Tested up to WordPress 6.1.1
387
+ * Adjusted PHP compatibility