Plugin Directory

Changeset 3417258


Ignore:
Timestamp:
12/11/2025 10:41:38 AM (3 months ago)
Author:
codeconfig
Message:

Update 1.0.0 version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codeconfig-accessibility/tags/1.0.0/includes/Ajax/Settings.php

    r3395466 r3417258  
    100100        $content = isset($_POST['content']) ? sanitize_text_field(wp_unslash($_POST['content'])) : null;
    101101
     102        if (!current_user_can('publish_pages')) {
     103            wp_send_json_error([
     104                'message' => __('You do not have permission to create pages.', 'codeconfig-accessibility')
     105            ], 403);
     106        }
     107
    102108        if (empty($title) || empty($content)) {
    103109            wp_send_json_error(['message' => __('Invalid data received!', 'codeconfig-accessibility')], 400);
Note: See TracChangeset for help on using the changeset viewer.