Plugin Directory

Changeset 3146433


Ignore:
Timestamp:
09/04/2024 12:12:23 PM (19 months ago)
Author:
kp4coder
Message:

Fix: Security Update, multiple website sync error solved and add some hooks

Location:
sync-post-with-other-site
Files:
24 added
3 edited

Legend:

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

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

    r3128945 r3146433  
    5252
    5353            if( !empty( $general_option ) && isset( $general_option['sps_host_name'] ) && !empty( $general_option['sps_host_name'] ) ) {
     54                $response = array();
    5455                foreach ($general_option['sps_host_name'] as $sps_key => $sps_value) {
    5556
     
    7374
    7475                    if( !empty($sps_value) && !empty($matched_role) && in_array($sps_value, $sps_website) ) {
    75                         return $this->sps_remote_post( $action, $args );
    76                     }
    77                 }
     76                        $response[$sps_key] = $this->sps_remote_post( $action, $args );
     77                    }
     78                }
     79                return $response;
    7880            }
    7981        }
     
    8183        function sps_remote_post( $action, $args = array() ) {
    8284            do_action( 'spsp_before_send_data', $args );
     85            $args = apply_filters( 'spsp_before_send_data_args', $args );
    8386            $args['sps_action'] = $action;
    8487            $url = $args['sps']['host_name']."/wp-json/sps/v1/data";
     
    224227                    'width'  => true,
    225228                );
     229
     230                $tags= apply_filters( 'sps_filter_custom_post_tags', $tags );
    226231            }
    227232
  • sync-post-with-other-site/trunk/readme.txt

    r3130148 r3146433  
    55Requires at least: 4.5
    66Tested up to: 6.6.1
    7 Stable tag: 1.7
     7Stable tag: 1.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    111111* Fix: Security Update of Authorization to Authenticated
    112112
     113= 1.8 - September 04, 2024 =
     114* Fix: Security Update, multiple website sync error solved and add some hooks
    113115
    114116== Upgrade notice ==
Note: See TracChangeset for help on using the changeset viewer.