Duplicate Page and Post - Version 2.8

Version Description

Download this release

Release Info

Developer arjunthakur
Plugin Icon 128x128 Duplicate Page and Post
Version 2.8
Comparing to
See all releases

Code changes from version 2.7 to 2.8

duplicate-wp-page-post-setting.php CHANGED
@@ -12,7 +12,7 @@ if(isset($_POST['submit_dpp_wpp_page']) && wp_verify_nonce( $_POST['dpp_nonce_fi
12
  unset($_POST[$noneed]);
13
  endforeach;
14
  foreach($_POST as $key => $val):
15
- $dpp_options[$key] = $val;
16
  endforeach;
17
  $dpp_settings_save = update_option('dpp_wpp_page_options', $dpp_options );
18
  if($dpp_settings_save){ dpp_wpp_page::dp_redirect('options-general.php?page=dpp_page_settings&instruct=1'); }
@@ -75,17 +75,17 @@ endif;
75
  <th scope="row"><label for="dpp_post_suffix"><?php _e('Duplicate Post Suffix<br><em>Default: Empty</em>', 'dpp_wpp_page')?></label></th>
76
 
77
  <td>
78
- <input type="text" class="regular-text" value="<?php echo !empty($opt['dpp_post_suffix']) ? $opt['dpp_post_suffix'] : ''?>" id="dpp_post_suffix" name="dpp_post_suffix">
79
  <p><?php _e('Add a suffix for duplicate page and post. It will show after title.', 'dpp_wpp_page')?></p>
80
  </td>
81
  </tr>
82
  <tr>
83
  <th scope="row"><label for="dpp_post_link_title"><?php _e('Duplicate Link Text<br><em>Default: Duplicate</em>', 'dpp_wpp_page')?></label></th>
84
  <td>
85
- <input type="text" class="regular-text" value="<?php echo !empty($opt['dpp_post_link_title']) ? $opt['dpp_post_link_title'] : ''?>" id="dpp_post_link_title" name="dpp_post_link_title">
86
  <p><?php _e('It will show above text on duplicate page/post link button instead of default (Duplicate)', 'dpp_wpp_page')?></p>
87
  </td>
88
- </tr>
89
  </tbody>
90
  </table>
91
  <p class="submit"><input type="submit" value="Save Settings" class="button button-primary" id="submit" name="submit_dpp_wpp_page"></p>
12
  unset($_POST[$noneed]);
13
  endforeach;
14
  foreach($_POST as $key => $val):
15
+ $dpp_options[$key] = sanitize_text_field($val);
16
  endforeach;
17
  $dpp_settings_save = update_option('dpp_wpp_page_options', $dpp_options );
18
  if($dpp_settings_save){ dpp_wpp_page::dp_redirect('options-general.php?page=dpp_page_settings&instruct=1'); }
75
  <th scope="row"><label for="dpp_post_suffix"><?php _e('Duplicate Post Suffix<br><em>Default: Empty</em>', 'dpp_wpp_page')?></label></th>
76
 
77
  <td>
78
+ <input type="text" class="regular-text" value="<?php echo !empty($opt['dpp_post_suffix']) ? esc_attr($opt['dpp_post_suffix']) : ''?>" id="dpp_post_suffix" name="dpp_post_suffix">
79
  <p><?php _e('Add a suffix for duplicate page and post. It will show after title.', 'dpp_wpp_page')?></p>
80
  </td>
81
  </tr>
82
  <tr>
83
  <th scope="row"><label for="dpp_post_link_title"><?php _e('Duplicate Link Text<br><em>Default: Duplicate</em>', 'dpp_wpp_page')?></label></th>
84
  <td>
85
+ <input type="text" class="regular-text" value="<?php echo !empty($opt['dpp_post_link_title']) ? esc_attr($opt['dpp_post_link_title']) : ''?>" id="dpp_post_link_title" name="dpp_post_link_title">
86
  <p><?php _e('It will show above text on duplicate page/post link button instead of default (Duplicate)', 'dpp_wpp_page')?></p>
87
  </td>
88
+ </tr>
89
  </tbody>
90
  </table>
91
  <p class="submit"><input type="submit" value="Save Settings" class="button button-primary" id="submit" name="submit_dpp_wpp_page"></p>
duplicate-wp-page-post.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://wordpress.org/plugins/duplicate-wp-page-post/
5
  Description: Quickly clone a page, post or custom post and supports Gutenberg.
6
  Author: Arjun Thakur
7
  Author URI: https://profiles.wordpress.org/arjunthakur#content-plugins
8
- Version: 2.7
9
  License: GPLv2 or later
10
  Text Domain: dpp_wpp_page
11
  */
5
  Description: Quickly clone a page, post or custom post and supports Gutenberg.
6
  Author: Arjun Thakur
7
  Author URI: https://profiles.wordpress.org/arjunthakur#content-plugins
8
+ Version: 2.8
9
  License: GPLv2 or later
10
  Text Domain: dpp_wpp_page
11
  */
readme.txt CHANGED
@@ -2,10 +2,10 @@
2
  Contributors: arjunthakur, efficientninja
3
  Tags: duplicate post, duplicate page, clone page, clone post, duplicate custom posts, clone custom post, wordpress page duplicator, wordpress post duplicator, page duplicate, clone page and post, wp post clone.
4
  Requires at least: 3.5
5
- Tested up to: 5.9.2
6
  Requires PHP: 5.2.4
7
- Stable tag: 2.7
8
- Version: 2.7
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
2
  Contributors: arjunthakur, efficientninja
3
  Tags: duplicate post, duplicate page, clone page, clone post, duplicate custom posts, clone custom post, wordpress page duplicator, wordpress post duplicator, page duplicate, clone page and post, wp post clone.
4
  Requires at least: 3.5
5
+ Tested up to: 6.0.1
6
  Requires PHP: 5.2.4
7
+ Stable tag: 2.8
8
+ Version: 2.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11