Plugin Directory

Changeset 3128945


Ignore:
Timestamp:
07/31/2024 04:53:23 PM (20 months ago)
Author:
kp4coder
Message:

Security Update of Authorization to Authenticated

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

Legend:

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

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

    r3095264 r3128945  
    391391                            $return['msg'] = __('Authenitcate successfully.', SPS_txt_domain);
    392392                        } else {
    393                             $sps_sync_data['content_match'] = $sps_content_match;
    394                             $return = call_user_func( array( $this, $sps_action ), $author, $sps_sync_data );
     393                            if( ( $sps_sync_data['post_type'] == 'page' && $author->has_cap('edit_pages') ) || $author->has_cap('edit_posts') ) {
     394                                $sps_sync_data['content_match'] = $sps_content_match;
     395                                $return = call_user_func( array( $this, $sps_action ), $author, $sps_sync_data );
     396                            } else {
     397                                $return['status'] = __('success', SPS_txt_domain);
     398                                $return['msg'] = __('You do not have permission to do the action.', SPS_txt_domain);
     399                            }
    395400                        }
    396401                    } else {
  • sync-post-with-other-site/trunk/readme.txt

    r3095272 r3128945  
    44Tags: wp sync post, sync post with multiple sites, post content sync, migrate post content, synchronization post
    55Requires at least: 4.5
    6 Tested up to: 6.5.3
    7 Stable tag: 1.5
     6Tested up to: 6.6.1
     7Stable tag: 1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    102102* Fix: Send data using API, Security Update
    103103
     104= 1.6.1 - July 31, 2024 =
     105* Fix: Security Update of Authorization to Authenticated
     106
     107
    104108== Upgrade notice ==
    105109
Note: See TracChangeset for help on using the changeset viewer.