Changeset 3324964
- Timestamp:
- 07/09/2025 12:01:03 PM (9 months ago)
- Location:
- sync-post-with-other-site/trunk
- Files:
-
- 6 edited
-
SyncPostWithOtherSite.php (modified) (2 diffs)
-
includes/sps_post_meta.class.php (modified) (1 diff)
-
includes/sps_settings.class.php (modified) (1 diff)
-
includes/sps_settings.view.php (modified) (1 diff)
-
includes/sps_sync.class.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sync-post-with-other-site/trunk/SyncPostWithOtherSite.php
r3146433 r3324964 4 4 Plugin URI: https://kp4coder.com/ 5 5 Description: Allows user to sync post with multiple websites. 6 Version: 1. 86 Version: 1.9 7 7 Author: kp4coder 8 8 Author URI: https://kp4coder.com/ … … 52 52 53 53 global $sps_version; 54 $sps_version = '1. 8';54 $sps_version = '1.9'; 55 55 56 56 class SyncPostWithOtherSite { -
sync-post-with-other-site/trunk/includes/sps_post_meta.class.php
r2741309 r3324964 34 34 echo '<div class="inner_meta">'; 35 35 36 wp_nonce_field('sps_nonce_action', 'sps_select_website'); 36 37 if( !empty( $general_option ) && isset( $general_option['sps_host_name'] ) && !empty( $general_option['sps_host_name'] ) ) { 37 38 $sps_website = get_post_meta($post->ID, 'sps_website', false); -
sync-post-with-other-site/trunk/includes/sps_settings.class.php
r3063897 r3324964 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' ) ) { 31 if ( ! isset( $_POST['sps_general_option_field'] ) || ! wp_verify_nonce( $_POST['sps_general_option_field'], 'sps_nonce_action' ) ) { 33 32 // Nonce verification failed; handle error or exit. 34 33 wp_die('verification failed. Please try again'); -
sync-post-with-other-site/trunk/includes/sps_settings.view.php
r3063897 r3324964 22 22 global $sps, $sps_settings; 23 23 24 wp_nonce_field('sps_nonce ', 'sps_general_option_field');24 wp_nonce_field('sps_nonce_action', 'sps_general_option_field'); 25 25 $general_option = $sps_settings->sps_get_settings_func(); 26 26 if(!empty($general_option)) { -
sync-post-with-other-site/trunk/includes/sps_sync.class.php
r3146433 r3324964 25 25 'methods' => 'POST', 26 26 'callback' => array( $this, 'sps_get_request' ), 27 'permission_callback' => '__return_true' 28 // 'permission_callback' => function () { 29 // return current_user_can( 'edit_posts' ); 30 // } 27 31 ) ); 28 32 } … … 94 98 return; 95 99 100 96 101 $sps_website = isset($_REQUEST['sps_website']) ? $_REQUEST['sps_website'] : array(); 97 102 $status_not = array('auto-draft', 'trash', 'inherit', 'draft'); 98 103 if($this->is_website_post && isset($post->post_status) && !in_array($post->post_status, $status_not) && !empty($sps_website) ) { 99 104 105 if ( ! isset( $_POST['sps_select_website'] ) || ! wp_verify_nonce( $_POST['sps_select_website'], 'sps_nonce_action' ) ) { 106 // Nonce verification failed; handle error or exit. 107 wp_die('verification failed. Please try again'); 108 } 100 109 global $wpdb, $sps, $sps_settings, $post_old_title; 101 110 -
sync-post-with-other-site/trunk/readme.txt
r3146433 r3324964 1 1 === Sync Post With Other Site === 2 2 Contributors: kp4coder 3 Donate link: https:// buymeacoffee.com/kp4coder3 Donate link: https://www.paypal.com/ncp/payment/UGG343HNQLG2N 4 4 Tags: wp sync post, sync post with multiple sites, post content sync, migrate post content, synchronization post 5 5 Requires at least: 4.5 6 6 Tested up to: 6.6.1 7 Stable tag: 1. 87 Stable tag: 1.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 114 114 * Fix: Security Update, multiple website sync error solved and add some hooks 115 115 116 = 1.9 - July 09, 2025 = 117 * Fix: Security Update 118 116 119 == Upgrade notice == 117 120
Note: See TracChangeset
for help on using the changeset viewer.