Plugin Directory

Changeset 2621605


Ignore:
Timestamp:
10/28/2021 07:14:52 PM (4 years ago)
Author:
frile
Message:

Added additional Access-Control-Allow-Origin header in order to prevent AJAX errors

Location:
bulk-remove-posts-from-category
Files:
8 added
2 edited

Legend:

Unmodified
Added
Removed
  • bulk-remove-posts-from-category/trunk/readme.txt

    r2499266 r2621605  
    44Tags: post categories, bulk edit, bulk remove, product categories
    55Requires at least: 4.6
    6 Tested up to: 5.7
    7 Stable tag: 3.2
    8 WC tested up to: 5.1.0
     6Tested up to: 5.8.1
     7Stable tag: 3.2.1
     8WC tested up to: 5.8.0
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    3939== Changelog ==
    4040
     41= 3.2.1 =
     42* Added additional Access-Control-Allow-Origin header in order to prevent AJAX errors
     43
    4144= 3.2 =
    4245* Support for multiple post taxonomies
  • bulk-remove-posts-from-category/trunk/wpbulkremove.php

    r2499266 r2621605  
    77 * Plugin URI:   https://masterns-studio.com/code-factory/wordpress-plugin/bulk-remove-from-category/
    88 * Description: Bulk remove posts from category
    9  * Version: 3.2
     9 * Version: 3.2.1
    1010 * Author: MasterNs
    1111 * Author URI: https://masterns-studio.com/
    1212 * License: GPLv2 or later
    1313 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
    14  * Tested up to: 5.7
     14 * Tested up to: 5.8.1
    1515 * Text Domain: bulk-remove-posts-from-category
    1616 * Domain Path: languages/
    1717 *
    18  * WC tested up to: 5.1.0
     18 * WC tested up to: 5.8.0
    1919 *
    2020 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
     
    6060*/
    6161
     62add_filter('allowed_http_origins', function($origins) {
     63    $origins[] = home_url('');
     64    return $origins;
     65});
     66
    6267add_action( 'wp_ajax_masterns_bulk_remove_cat', 'masterns_bulk_remove_cat_edit_hook' );
    6368function masterns_bulk_remove_cat_edit_hook() {
Note: See TracChangeset for help on using the changeset viewer.