Changeset 3063897
- Timestamp:
- 04/03/2024 03:39:23 PM (2 years ago)
- Location:
- sync-post-with-other-site/trunk
- Files:
-
- 4 edited
-
SyncPostWithOtherSite.php (modified) (2 diffs)
-
includes/sps_settings.class.php (modified) (1 diff)
-
includes/sps_settings.view.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sync-post-with-other-site/trunk/SyncPostWithOtherSite.php
r2972274 r3063897 4 4 Plugin URI: https://syncpostwithothersite.in/ 5 5 Description: Allows user to sync post with multiple websites. 6 Version: 1. 4.26 Version: 1.5.1 7 7 Author: kp4coder 8 8 Author URI: https://syncpostwithothersite.in/author/ … … 52 52 53 53 global $sps_version; 54 $sps_version = '1. 4.2';54 $sps_version = '1.5.1'; 55 55 56 56 class SyncPostWithOtherSite { -
sync-post-with-other-site/trunk/includes/sps_settings.class.php
r2675064 r3063897 29 29 30 30 function sps_save_settings_func( $params = array() ) { 31 $nonce = wp_create_nonce('sps_nonce'); 32 if ( ! isset( $_POST['sps_general_option_field'] ) || ! wp_verify_nonce( $_POST['sps_general_option_field'], 'sps_nonce' ) ) { 33 // Nonce verification failed; handle error or exit. 34 wp_die('verification failed. Please try again'); 35 } 36 31 37 if( isset( $params['sps_setting'] ) && $params['sps_setting'] != '') { 32 38 $sps_setting = $params['sps_setting']; 33 39 unset( $params['sps_setting'] ); 34 40 unset( $params['sps_setting_save'] ); 41 42 if( isset($params['sps_host_name']) && !empty($params['sps_host_name']) ) { 43 $hostnames = array(); 44 $usernames = array(); 45 $passwords = array(); 46 foreach ($params['sps_host_name'] as $key => $hostname) { 47 $hostnames[] = sanitize_url($hostname); 48 $usernames[] = sanitize_user($params['sps_content_username'][$key]); 49 $passwords[] = wp_strip_all_tags($params['sps_content_password'][$key]); 50 } 51 52 $params['sps_host_name'] = $hostnames; 53 $params['sps_content_username'] = $usernames; 54 $params['sps_content_password'] = $passwords; 55 } 35 56 36 57 update_option('sps_setting', $params); -
sync-post-with-other-site/trunk/includes/sps_settings.view.php
r3057293 r3063897 22 22 global $sps, $sps_settings; 23 23 24 wp_nonce_field('sps_nonce', 'sps_general_option_field'); 24 25 $general_option = $sps_settings->sps_get_settings_func(); 25 26 if(!empty($general_option)) { … … 49 50 <th><label for="sps_host_name_<?php echo $spcn; ?>"><?php _e('Host Name of Target', SPS_txt_domain); ?></label></th> 50 51 <td> 51 <input type="text" name="sps_host_name[<?php echo $spcn; ?>]" id="sps_host_name_<?php echo $spcn; ?>" class="sps_input sps_url" value="<?php echo $sps_host_name?>" />52 <input type="text" name="sps_host_name[<?php echo $spcn; ?>]" id="sps_host_name_<?php echo $spcn; ?>" class="sps_input sps_url" value="<?php echo sanitize_url($sps_host_name) ?>" /> 52 53 <?php if($spcn!=0) { ?> 53 54 <a href="javascript:;" class="remove_site" data-site_id="<?php echo $spcn; ?>"> Remove Site </a> … … 59 60 <th><label for="sps_content_username_<?php echo $spcn; ?>"><?php _e('Username', SPS_txt_domain); ?></label></th> 60 61 <td> 61 <input type="text" name="sps_content_username[<?php echo $spcn; ?>]" id="sps_content_username_<?php echo $spcn; ?>" class="sps_input" value="<?php echo $sps_content_username?>" />62 <input type="text" name="sps_content_username[<?php echo $spcn; ?>]" id="sps_content_username_<?php echo $spcn; ?>" class="sps_input" value="<?php echo sanitize_user($sps_content_username) ?>" /> 62 63 <p><?php _e('Enter', SPS_txt_domain); ?> <span class="sps_username"></span> <?php _e('website username', SPS_txt_domain); ?></p> 63 64 </td> … … 67 68 <td> 68 69 <div class="sps_password_box"> 69 <input type="password" name="sps_content_password[<?php echo $spcn; ?>]" id="sps_content_password_<?php echo $spcn; ?>" class="sps_input" value="<?php echo $sps_content_password?>" />70 <input type="password" name="sps_content_password[<?php echo $spcn; ?>]" id="sps_content_password_<?php echo $spcn; ?>" class="sps_input" value="<?php echo wp_strip_all_tags( stripslashes($sps_content_password) ) ?>" /> 70 71 <span class="dashicons dashicons-visibility sps_show_pass"></span> 71 72 <span class="dashicons dashicons-hidden sps_hide_pass"></span> -
sync-post-with-other-site/trunk/readme.txt
r3057294 r3063897 4 4 Tags: wp sync post, sync post content, sync post with multiple sites, post attachments, post content, post content sync, migrate post content, moving post data, synchronization post 5 5 Requires at least: 4.5 6 Tested up to: 6. 46 Tested up to: 6.5 7 7 Stable tag: 1.3 8 8 License: GPLv2 or later … … 96 96 * Fix: small errors 97 97 98 = 1.5.2 - April 03, 2024 = 99 * Fix: Security Update 100 98 101 == Upgrade notice == 99 102
Note: See TracChangeset
for help on using the changeset viewer.