Changeset 3261804
- Timestamp:
- 03/25/2025 09:44:56 PM (12 months ago)
- Location:
- etruel-del-post-copies
- Files:
-
- 13 deleted
- 9 edited
-
tags/2.0 (deleted)
-
tags/3.02 (deleted)
-
tags/3.10 (deleted)
-
tags/4.0.1 (deleted)
-
tags/4.0.2 (deleted)
-
tags/5.0 (deleted)
-
tags/5.1 (deleted)
-
tags/5.2 (deleted)
-
tags/5.3 (deleted)
-
tags/5.3.1 (deleted)
-
tags/5.3.2 (deleted)
-
tags/5.4 (deleted)
-
tags/5.5 (deleted)
-
tags/6.0/edel-post-copies.php (modified) (1 diff)
-
tags/6.0/includes/ajax-actions.php (modified) (6 diffs)
-
tags/6.0/includes/js/meta-boxes-admin-head.js (modified) (3 diffs)
-
tags/6.0/includes/meta-boxes-campaign.php (modified) (1 diff)
-
trunk/edel-post-copies.php (modified) (1 diff)
-
trunk/includes/ajax-actions.php (modified) (6 diffs)
-
trunk/includes/js/meta-boxes-admin-head.js (modified) (3 diffs)
-
trunk/includes/meta-boxes-campaign.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
etruel-del-post-copies/tags/6.0/edel-post-copies.php
r3256732 r3261804 46 46 47 47 private static $instance = null; 48 public static $prorequired = '2.5'; 48 49 49 50 public static function get_instance() { -
etruel-del-post-copies/tags/6.0/includes/ajax-actions.php
r3256732 r3261804 18 18 * 19 19 * @since 5.0 20 * @return logsin html format20 * @return in html format 21 21 */ 22 22 class wpedpc_ajax_actions { … … 34 34 } 35 35 static function show_logs_campaign() { 36 if(!isset( $_POST['nonce'] ) || !wp_verify_nonce($_POST['nonce'], 'etruel-del-post-copies')){ 37 return false; 38 } 39 36 40 if ( isset( $_POST['post_id'] ) ) { 37 41 $post_id = $_POST['post_id']; … … 89 93 } 90 94 public static function run_campaign() { 95 if(!isset( $_POST['nonce'] ) || !wp_verify_nonce($_POST['nonce'], 'etruel-del-post-copies')){ 96 return false; 97 } 91 98 // Verify campaign_ID exists and sanitize input 92 99 if (!isset($_POST['campaign_ID'])) { … … 112 119 public static function erase_logs() { 113 120 // 1. Verify nonce for CSRF protection 114 if (!isset($_REQUEST[' _wpnonce']) || !wp_verify_nonce($_REQUEST['_wpnonce'], 'wpdpc_erase_logs')) {121 if (!isset($_REQUEST['nonce']) || !wp_verify_nonce($_REQUEST['nonce'], 'etruel-del-post-copies')) { 115 122 wp_send_json_error(array('message' => __('Security check failed', 'etruel-del-post-copies'))); 116 123 } … … 141 148 142 149 public static function show() { 150 if(!isset( $_POST['nonce'] ) || !wp_verify_nonce($_POST['nonce'], 'etruel-del-post-copies')){ 151 return false; 152 } 143 153 // Verify and sanitize campaign_ID 144 154 if (!isset($_POST['campaign_ID'])) { … … 157 167 158 168 public static function del_post() { 169 if(!isset( $_POST['nonce'] ) || !wp_verify_nonce($_POST['nonce'], 'etruel-del-post-copies')){ 170 return false; 171 } 159 172 // Verify nonce for security 160 173 if (!isset($_POST['url'], $_POST['post_id'], $_POST['campaign_ID'])) { -
etruel-del-post-copies/tags/6.0/includes/js/meta-boxes-admin-head.js
r3256732 r3261804 25 25 c_ID = $('#post_ID').val(); 26 26 var data = { 27 nonce: wpedpc_object_meta_boxes.del_post_cp_nonce, 27 28 post_id: $('#post_ID').val(), 28 29 action: "wpedpc_show_logs_campaign" … … 49 50 action: jQuery('#quickdo').val(), 50 51 campaign_ID: jQuery('#post_ID').val(), 51 _wpnonce: jQuery('#wpdpc_erase_logs').val()52 nonce: wpedpc_object_meta_boxes.del_post_cp_nonce, 52 53 }; 53 54 … … 109 110 110 111 let data = { 112 nonce: wpedpc_object_meta_boxes.del_post_cp_nonce, 111 113 url: url, 112 114 post_id: post_id, -
etruel-del-post-copies/tags/6.0/includes/meta-boxes-campaign.php
r3256732 r3261804 89 89 'msg_loading_campaign' => __('Running Campaign...', 'etruel-del-post-copies'), 90 90 'msg_before_go' => __('You must Save Changes below before "Go"', 'etruel-del-post-copies' ), 91 'msg_before_del' => __('Are you sure you want to delete the post with ID:', 'etruel-del-post-copies' ) 91 'msg_before_del' => __('Are you sure you want to delete the post with ID:', 'etruel-del-post-copies' ), 92 'del_post_cp_nonce' => wp_create_nonce('etruel-del-post-copies') 92 93 ) ); 93 94 -
etruel-del-post-copies/trunk/edel-post-copies.php
r3256732 r3261804 46 46 47 47 private static $instance = null; 48 public static $prorequired = '2.5'; 48 49 49 50 public static function get_instance() { -
etruel-del-post-copies/trunk/includes/ajax-actions.php
r3256732 r3261804 18 18 * 19 19 * @since 5.0 20 * @return logsin html format20 * @return in html format 21 21 */ 22 22 class wpedpc_ajax_actions { … … 34 34 } 35 35 static function show_logs_campaign() { 36 if(!isset( $_POST['nonce'] ) || !wp_verify_nonce($_POST['nonce'], 'etruel-del-post-copies')){ 37 return false; 38 } 39 36 40 if ( isset( $_POST['post_id'] ) ) { 37 41 $post_id = $_POST['post_id']; … … 89 93 } 90 94 public static function run_campaign() { 95 if(!isset( $_POST['nonce'] ) || !wp_verify_nonce($_POST['nonce'], 'etruel-del-post-copies')){ 96 return false; 97 } 91 98 // Verify campaign_ID exists and sanitize input 92 99 if (!isset($_POST['campaign_ID'])) { … … 112 119 public static function erase_logs() { 113 120 // 1. Verify nonce for CSRF protection 114 if (!isset($_REQUEST[' _wpnonce']) || !wp_verify_nonce($_REQUEST['_wpnonce'], 'wpdpc_erase_logs')) {121 if (!isset($_REQUEST['nonce']) || !wp_verify_nonce($_REQUEST['nonce'], 'etruel-del-post-copies')) { 115 122 wp_send_json_error(array('message' => __('Security check failed', 'etruel-del-post-copies'))); 116 123 } … … 141 148 142 149 public static function show() { 150 if(!isset( $_POST['nonce'] ) || !wp_verify_nonce($_POST['nonce'], 'etruel-del-post-copies')){ 151 return false; 152 } 143 153 // Verify and sanitize campaign_ID 144 154 if (!isset($_POST['campaign_ID'])) { … … 157 167 158 168 public static function del_post() { 169 if(!isset( $_POST['nonce'] ) || !wp_verify_nonce($_POST['nonce'], 'etruel-del-post-copies')){ 170 return false; 171 } 159 172 // Verify nonce for security 160 173 if (!isset($_POST['url'], $_POST['post_id'], $_POST['campaign_ID'])) { -
etruel-del-post-copies/trunk/includes/js/meta-boxes-admin-head.js
r3256732 r3261804 25 25 c_ID = $('#post_ID').val(); 26 26 var data = { 27 nonce: wpedpc_object_meta_boxes.del_post_cp_nonce, 27 28 post_id: $('#post_ID').val(), 28 29 action: "wpedpc_show_logs_campaign" … … 49 50 action: jQuery('#quickdo').val(), 50 51 campaign_ID: jQuery('#post_ID').val(), 51 _wpnonce: jQuery('#wpdpc_erase_logs').val()52 nonce: wpedpc_object_meta_boxes.del_post_cp_nonce, 52 53 }; 53 54 … … 109 110 110 111 let data = { 112 nonce: wpedpc_object_meta_boxes.del_post_cp_nonce, 111 113 url: url, 112 114 post_id: post_id, -
etruel-del-post-copies/trunk/includes/meta-boxes-campaign.php
r3256732 r3261804 89 89 'msg_loading_campaign' => __('Running Campaign...', 'etruel-del-post-copies'), 90 90 'msg_before_go' => __('You must Save Changes below before "Go"', 'etruel-del-post-copies' ), 91 'msg_before_del' => __('Are you sure you want to delete the post with ID:', 'etruel-del-post-copies' ) 91 'msg_before_del' => __('Are you sure you want to delete the post with ID:', 'etruel-del-post-copies' ), 92 'del_post_cp_nonce' => wp_create_nonce('etruel-del-post-copies') 92 93 ) ); 93 94 -
etruel-del-post-copies/trunk/readme.txt
r3256732 r3261804 58 58 59 59 == Changelog == 60 = 6.0 Mar 16, 2025 =60 = 6.0 Mar 25, 2025 = 61 61 * Major version. Important release & must update version. 62 62 * **First use should be in a test environment.**
Note: See TracChangeset
for help on using the changeset viewer.