Plugin Directory

Changeset 3398929


Ignore:
Timestamp:
11/19/2025 12:02:31 PM (5 months ago)
Author:
akashmalik
Message:

Improvements and bug fixes

Location:
scratch-win-giveaways-for-website-facebook
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • scratch-win-giveaways-for-website-facebook/tags/2.9.2/includes/swin-api.php

    r3239997 r3398929  
    362362
    363363            $id_page = sanitize_text_field($_POST['id']);
    364             // Check if current user has permission to access this post
    365             if ( current_user_can( 'delete_post', $params['ID'] ) ) {
    366                 throw new Exception('You do not have permission to access this page');
    367             }
    368364       
    369365            if (!get_post_status($id_page)) {
  • scratch-win-giveaways-for-website-facebook/trunk/includes/swin-api.php

    r3239997 r3398929  
    362362
    363363            $id_page = sanitize_text_field($_POST['id']);
    364             // Check if current user has permission to access this post
    365             if ( current_user_can( 'delete_post', $params['ID'] ) ) {
    366                 throw new Exception('You do not have permission to access this page');
    367             }
    368364       
    369365            if (!get_post_status($id_page)) {
Note: See TracChangeset for help on using the changeset viewer.