diff --git a/assets/css/about-plugins-2.0.0.min.css b/assets/css/about-plugins-2.0.1.min.css similarity index 100% rename from assets/css/about-plugins-2.0.0.min.css rename to assets/css/about-plugins-2.0.1.min.css diff --git a/assets/css/admin-style-2.0.0.min.css b/assets/css/admin-style-2.0.1.min.css similarity index 100% rename from assets/css/admin-style-2.0.0.min.css rename to assets/css/admin-style-2.0.1.min.css diff --git a/assets/js/script-2.0.0.min.js b/assets/js/script-2.0.1.min.js similarity index 100% rename from assets/js/script-2.0.0.min.js rename to assets/js/script-2.0.1.min.js diff --git a/assets/js/script.js b/assets/js/script.js index 73a10fa..7625c2f 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -12,9 +12,9 @@ function selfXssMessage() { 'color:red;font-size:50px;font-weight:bold;text-shadow: 1px 1px 0px black, 1px -1px 0px black, -1px 1px 0px black, -1px -1px 0px black;' ) ); - if ( selfXss && selfXss.message !== '' ) { + if (selfXss && selfXss.message !== '') { /* eslint-disable no-console */ - setTimeout( console.log.bind( console, '\n', selfXss.message ) ); + setTimeout(console.log.bind(console, '\n', selfXss.message)); } else { setTimeout( /* eslint-disable no-console */ @@ -27,5 +27,4 @@ function selfXssMessage() { ); } } -/* eslint-disable @wordpress/no-global-event-listener */ -document.addEventListener( 'DOMContentLoaded', selfXssMessage ); +document.addEventListener('DOMContentLoaded', selfXssMessage); diff --git a/changelog.txt b/changelog.txt index 9278498..d9f1a77 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,13 @@ This file contains only old changelog. See readme.txt for newer versions. += 1.0.0 - Aug 24, 20 = + + * Enhancements + * Escape array values + * Set headers to prevent caching before redirect + * Applied PHP Standard and removed couple of discouraged methods + = 0.3.5 - May 14, 19 = * Fixing issue with `update_option` diff --git a/gulpfile.js b/gulpfile.js index 1f04285..7772bc7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,7 +1,7 @@ const { src, dest, parallel } = require('gulp'); const cleanCSS = require('gulp-clean-css'); -const del = require('del'); -const package = require("./package.json"); +// const { deleteAsync } = require('del'); +const package = require('./package.json'); const uglify = require('gulp-uglify'); const rename = require('gulp-rename'); @@ -9,25 +9,25 @@ const rename = require('gulp-rename'); const pluginVersion = package.preventXssVulnerability.pluginVersion; async function deleteMinFiles() { - await del(['assets/**/*.min.*']); + await deleteAsync(['assets/js/script.min.js']); } function minifyCss() { return src(['assets/**/*.css', '!assets/**/*/*.min.css']) - .pipe(cleanCSS({compatibility: 'ie8'})) - .pipe(rename(function(path) { - path.extname = "-" + pluginVersion + ".min" + path.extname; - })) + .pipe(cleanCSS({ compatibility: 'ie8' })) + .pipe(rename(function (path) { + path.extname = '-' + pluginVersion + '.min' + path.extname; + })) .pipe(dest('assets/')); } function minifyJs() { return src(['assets/**/*.js', '!assets/**/*/*.min.js']) - .pipe(uglify()) - .pipe(rename(function(path) { - path.extname = "-" + pluginVersion + ".min" + path.extname; - })) + .pipe(uglify()) + .pipe(rename(function (path) { + path.extname = '-' + pluginVersion + '.min' + path.extname; + })) .pipe(dest('assets/')); } -exports.build = parallel(deleteMinFiles,minifyCss, minifyJs); +exports.build = parallel(minifyCss, minifyJs); diff --git a/includes/class-prevent-xss-vulnerability.php b/includes/class-prevent-xss-vulnerability.php index 7c6c9bb..58cbb62 100644 --- a/includes/class-prevent-xss-vulnerability.php +++ b/includes/class-prevent-xss-vulnerability.php @@ -18,7 +18,7 @@ final class Prevent_XSS_Vulnerability { * * @var string */ - public $version = '2.0.0'; + public $version = '2.0.1'; /** * Class constructor. diff --git a/package.json b/package.json index 69e1860..a9b5fae 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,6 @@ "gulp-uglify": "3.0.2" }, "preventXssVulnerability": { - "pluginVersion": "2.0.0" + "pluginVersion": "2.0.1" } } diff --git a/prevent-xss-vulnerability.php b/prevent-xss-vulnerability.php index d843a38..7944165 100644 --- a/prevent-xss-vulnerability.php +++ b/prevent-xss-vulnerability.php @@ -3,7 +3,7 @@ * Plugin Name: Prevent XSS Vulnerability * Plugin URI: https://www.yasglobal.com/web-design-development/wordpress/prevent-xss-vulnerability/ * Description: Secure your site from the XSS Attack. - * Version: 2.0.0 + * Version: 2.0.1 * Author: Sami Ahmed Siddiqui * Author URI: https://www.linkedin.com/in/sami-ahmed-siddiqui/ * License: GPLv3 diff --git a/readme.txt b/readme.txt index 8623e5a..c8830ec 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: sasiddiqui Tags: attack, cross-site scripting, security, vulnerability, xss, self-xss Requires at least: 3.5 Tested up to: 6.0 -Stable tag: 2.0.0 +Stable tag: 2.0.1 License: GPLv3 License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -113,6 +113,11 @@ A. No, this plugin doesn't have any conflict with any plugin. == Changelog == += 2.0.1 - Aug 19, 22 = + + * Bug + * [Please fix Notices for use in WP_DEBUG mode](https://wordpress.org/support/topic/please-fix-notices-for-use-in-wp_debug-mode/) + = 2.0.0 - Jul 14, 21 = * Bug @@ -124,13 +129,6 @@ A. No, this plugin doesn't have any conflict with any plugin. * [Include other/extra parameters](https://github.com/samiahmedsiddiqui/prevent-xss-vulnerability/issues/3) * Fixed WPCS issues -= 1.0.0 - Aug 24, 20 = - - * Enhancements - * Escape array values - * Set headers to prevent caching before redirect - * Applied PHP Standard and removed couple of discouraged methods - = Earlier versions = * For the changelog of earlier versions, please refer to the separate changelog.txt file.