Plugin Directory

Changeset 3324964


Ignore:
Timestamp:
07/09/2025 12:01:03 PM (9 months ago)
Author:
kp4coder
Message:

V - 1.9 Security Update

Location:
sync-post-with-other-site/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • sync-post-with-other-site/trunk/SyncPostWithOtherSite.php

    r3146433 r3324964  
    44Plugin URI: https://kp4coder.com/
    55Description: Allows user to sync post with multiple websites.
    6 Version: 1.8
     6Version: 1.9
    77Author: kp4coder
    88Author URI: https://kp4coder.com/
     
    5252
    5353global $sps_version;
    54 $sps_version = '1.8';
     54$sps_version = '1.9';
    5555
    5656class SyncPostWithOtherSite {
  • sync-post-with-other-site/trunk/includes/sps_post_meta.class.php

    r2741309 r3324964  
    3434            echo '<div class="inner_meta">';
    3535               
     36            wp_nonce_field('sps_nonce_action', 'sps_select_website');
    3637            if( !empty( $general_option ) && isset( $general_option['sps_host_name'] ) && !empty( $general_option['sps_host_name'] ) ) {
    3738                $sps_website = get_post_meta($post->ID, 'sps_website', false);
  • sync-post-with-other-site/trunk/includes/sps_settings.class.php

    r3063897 r3324964  
    2929
    3030        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' ) ) {
    3332                // Nonce verification failed; handle error or exit.
    3433                wp_die('verification failed. Please try again');
  • sync-post-with-other-site/trunk/includes/sps_settings.view.php

    r3063897 r3324964  
    2222    global $sps, $sps_settings;
    2323
    24     wp_nonce_field('sps_nonce', 'sps_general_option_field');
     24    wp_nonce_field('sps_nonce_action', 'sps_general_option_field');
    2525    $general_option = $sps_settings->sps_get_settings_func();
    2626    if(!empty($general_option)) {
  • sync-post-with-other-site/trunk/includes/sps_sync.class.php

    r3146433 r3324964  
    2525                'methods'  => 'POST',
    2626                'callback' => array( $this, 'sps_get_request'  ),
     27                'permission_callback' => '__return_true'
     28                // 'permission_callback' => function () {
     29                //     return current_user_can( 'edit_posts' );
     30                // }
    2731            ) );
    2832        }
     
    9498                return;
    9599
     100
    96101            $sps_website = isset($_REQUEST['sps_website']) ? $_REQUEST['sps_website'] : array();
    97102            $status_not = array('auto-draft', 'trash', 'inherit', 'draft');
    98103            if($this->is_website_post && isset($post->post_status) && !in_array($post->post_status, $status_not) && !empty($sps_website) ) {
    99104
     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            }
    100109                global $wpdb, $sps, $sps_settings, $post_old_title;
    101110
  • sync-post-with-other-site/trunk/readme.txt

    r3146433 r3324964  
    11=== Sync Post With Other Site ===
    22Contributors: kp4coder
    3 Donate link: https://buymeacoffee.com/kp4coder
     3Donate link: https://www.paypal.com/ncp/payment/UGG343HNQLG2N
    44Tags: wp sync post, sync post with multiple sites, post content sync, migrate post content, synchronization post
    55Requires at least: 4.5
    66Tested up to: 6.6.1
    7 Stable tag: 1.8
     7Stable tag: 1.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    114114* Fix: Security Update, multiple website sync error solved and add some hooks
    115115
     116= 1.9 - July 09, 2025 =
     117* Fix: Security Update
     118
    116119== Upgrade notice ==
    117120
Note: See TracChangeset for help on using the changeset viewer.