Plugin Directory

Changeset 3330248


Ignore:
Timestamp:
07/18/2025 01:49:03 PM (7 months ago)
Author:
moderationapi
Message:

Update to version 1.0.4

Location:
moderation-api-automated-content-moderation/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • moderation-api-automated-content-moderation/trunk/README.txt

    r3326772 r3330248  
    22Contributors: moderationapi
    33Donate link: https://moderationapi.com/
    4 Tags: ai moderation, toxic, nsfw, profanity, spam, multisite
     4Tags: ai moderation, toxic, nsfw, profanity, spam
    55Requires at least: 5.8
    66Tested up to: 6.8.1
    77Requires PHP: 7.4
    8 Stable tag: 1.0.3
     8Stable tag: 1.0.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    112112* Tested up to WordPress 6.8.1
    113113
     114= 1.0.4 =
     115* Enhanced webhook support to handle both GET and POST requests for action parameter
     116
    114117== Upgrade Notice ==
    115118
  • moderation-api-automated-content-moderation/trunk/moderation-api.php

    r3326772 r3330248  
    1717 * Plugin URI:        https://moderationapi.com/integrations/wordpress-content-moderation
    1818 * Description:       Use Moderation API to automatically moderate comments on your WordPress site. Detects a large range of contet such as bullying, discrimination, sentiment, NSFW, PII, and much more.
    19  * Version:           1.0.3
     19 * Version:           1.0.4
    2020 * Author:            Moderation API
    2121 * Author URI:        https://moderationapi.com/
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'MODERATION_API_VERSION', '1.0.3' );
     38define( 'MODERATION_API_VERSION', '1.0.4' );
    3939
    4040define( 'MODERATION_API_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • moderation-api-automated-content-moderation/trunk/public/class-moderation-api-public.php

    r3326772 r3330248  
    212212           
    213213            // Sanitize and validate the action
    214             $action = isset($_GET['action']) ? sanitize_key($_GET['action']) : '';
     214            $action = isset($_REQUEST['action']) ? sanitize_key($_REQUEST['action']) : '';
    215215           
    216216            if (!in_array($action, array('remove', 'show'))) {
Note: See TracChangeset for help on using the changeset viewer.