Plugin Directory

Changeset 2970788


Ignore:
Timestamp:
09/23/2023 11:43:10 PM (3 years ago)
Author:
webvitaly
Message:

Ver.1.5;

  • remove all iframe attributes starting with "on". Examples: onload, onmouseover, onfocus, onpageshow, onclick
Location:
sitekit
Files:
22 added
3 edited

Legend:

Unmodified
Added
Removed
  • sitekit/trunk/inc/sitekit-shortcode-iframe.php

    r2960330 r2970788  
    2222            $value = esc_url( $value );
    2323        }
    24         // remove some attributes
    25         if ( strtolower($attr) != 'onload' AND strtolower($attr) != 'onpageshow' AND strtolower($attr) != 'onclick') {
     24        // remove all attributes starting with "on". Examples: onload, onmouseover, onfocus, onpageshow, onclick
     25        if ( strpos( strtolower( $attr ), 'on' ) !== 0 ) {
    2626            if ( $value != '' ) {
    2727                // adding all attributes
  • sitekit/trunk/readme.txt

    r2960330 r2970788  
    22Contributors: webvitaly
    33Donate link: http://web-profile.net/donate/
    4 Tags: widget, widgets, search, archive, archives, category, categories, pages, shortcode, shortcodes, bloginfo
     4Tags: widget, widgets, search, archive, archives, category, categories, pages, shortcode, shortcodes, bloginfo, iframe
    55Requires at least: 4.0
    66Tested up to: 6.3.1
    7 Stable tag: 1.4
     7Stable tag: 1.5
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
    1010
    11 Widgets: search, archives and categories. Shortcodes: archives, bloginfo and categories.
     11Widgets: search, archives and categories. Shortcodes: archives, bloginfo, iframe and categories.
    1212
    1313== Description ==
     
    108108== Changelog ==
    109109
     110= 1.5 =
     111* Removed all iframe attributes starting with "on". Examples: onload, onmouseover, onfocus, onpageshow, onclick.
     112
    110113= 1.4 =
    111114* Sanitize iframe URL.
  • sitekit/trunk/sitekit.php

    r2960330 r2970788  
    44Plugin URI: https://wordpress.org/plugins/sitekit/
    55Description: Widgets: search, archives, categories, pages, posts. Shortcodes: archives, bloginfo, categories, posts.
    6 Version: 1.4
     6Version: 1.5
    77Author: webvitaly
    88Text Domain: sitekit
     
    1515}
    1616
    17 define('SITEKIT_PLUGIN_VERSION', '1.4');
     17define('SITEKIT_PLUGIN_VERSION', '1.5');
    1818define('SITEKIT_PLUGIN_POWERED', "\n".'<!-- Powered by Sitekit v.'.SITEKIT_PLUGIN_VERSION.' https://wordpress.org/plugins/sitekit/ -->'."\n");
    1919
Note: See TracChangeset for help on using the changeset viewer.