Plugin Directory

Changeset 3231203


Ignore:
Timestamp:
01/29/2025 10:56:29 AM (14 months ago)
Author:
snexed
Message:

2.4.0

Location:
ploxel
Files:
13 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • ploxel/trunk/ploxel.php

    r3230052 r3231203  
    44Plugin URI: http://wordpress.org/plugins/ploxel/
    55Description: Sell tickets online your WordPress site with Ticketmeo, see https://www.ticketmeo.com/sell-tickets-on-wordpress for more information on how it works.
    6 Version: 2.3.6
     6Version: 2.4.0
    77Author: Ploxel
    88Author URI: http://www.ticketmeo.com/sell-tickets-on-wordpress
     
    1010*/
    1111
    12 define('PLOXEL_PLUGIN_VERSION', '2.3.6');
     12define('PLOXEL_PLUGIN_VERSION', '2.4.0');
    1313
    1414register_activation_hook(__FILE__, 'ploxel_activate');
     
    3131function init_ploxel_script() {
    3232    wp_enqueue_style('ploxel-css', plugins_url('/css/ploxel.css', __FILE__ ));
    33     wp_enqueue_script('ploxel-jquery', plugins_url('/js/ploxel_jquery.js', __FILE__ ), array('jquery'));
     33    wp_enqueue_script('ploxel-jquery', plugins_url('/js/ploxel.js', __FILE__ ));
    3434}
    3535
     
    4444    }
    4545
     46    $url = parse_url($attrs['src']);
     47
     48    if($url['host'] !== 'www.ticketmeo.com' && $url['host'] !== 'ticketmeo.com' && $url['host'] !== 'ploxel.com' && $url['host'] !== 'www.ploxel.com') {
     49        return 'Invalid URL, domain must be www.ticketmeo.com';
     50    }
     51
     52    if($url['scheme'] !== 'https') {
     53        return 'Invalid URL, scheme must be https';
     54    }
     55
    4656    $html = '<iframe';
    4757
    4858    foreach($attrs as $attr => $value) {
    4959        if(!in_array($attr, $allowedAttrs)) {
    50             return esc_attr($attr) + ' is not allowed.';
     60            return 'Attribute ' . esc_attr($attr) . ' is not allowed';
    5161        }
    5262       
  • ploxel/trunk/readme.txt

    r3230052 r3231203  
    44Requires at least: 2.8
    55Tested up to: 6.7
    6 Stable tag: 2.3.6
     6Stable tag: 2.4.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    116116== Changelog ==
    117117
     1182.4.0
     119
     120* Upgraded URL checks to ensure Ticketmeo domain
     121
     1222.3.6
     123
     124* Bug fixes
     125
     1262.3.5
     127
     128* Bug fixes
     129
    1181302.3.4
    119131
    120 * Big fixes
     132* Bug fixes
    121133
    1221342.3.3
Note: See TracChangeset for help on using the changeset viewer.