Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix-#v-2.1.11 #80

Merged
merged 2 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions includes/component/tracking-data/ts-tracking.php
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,11 @@ public static function ts_admin_notices_scripts() {

public static function ts_admin_notices() {
$nonce = $_POST['tracking_notice'];//phpcs:ignore
if ( ! wp_verify_nonce( $nonce, 'tracking_notice' ) ) {
return;
if ( is_user_logged_in() && current_user_can( 'manage_options' ) && wp_verify_nonce( $nonce, 'tracking_notice' ) ) {
update_option( self::$plugin_prefix . '_allow_tracking', 'dismissed' );
Shortcodes_TS_Tracker::ts_send_tracking_data( false );
die();
}
update_option( self::$plugin_prefix . '_allow_tracking', 'dismissed' );
Shortcodes_TS_Tracker::ts_send_tracking_data( false );
die();
}

/**
Expand Down
4 changes: 2 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin URI: https://www.tychesoftwares.com/
* Description: A handy collection of shortcodes for your site.
*
* Version: 2.1.10
* Version: 2.1.11
*
* Author: Tyche Softwares
* Author URI: https://www.tychesoftwares.com/
Expand All @@ -27,7 +27,7 @@ class Arconix_Shortcodes {
* @access private
* @var string $version Current plugin version
*/
const VERSION = '2.1.10';
const VERSION = '2.1.11';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 Error: Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed).


/**
* The url path to this plugin.
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: jgardner03, tychesoftwares, shasvat
Donate link: https://www.paypal.me/TycheSoftwares
Tags: arconix, shortcodes, tabs, toggle, buttons, accordion
Requires at least: 4.3
Tested up to: 6.4.3
Stable tag: 2.1.10
Tested up to: 6.5.0
Stable tag: 2.1.11
License: GPLv2 or later

Arconix Shortcodes provides a number of useful design elements like buttons, boxes, tabs and toggles to help compliment any website.
Expand Down Expand Up @@ -122,6 +122,11 @@ That's fantastic! Feel free to submit a pull request over at [Github](http://arc

== Changelog ==

= 2.1.11 =
* Fix - Cross Site Request Forgery (CSRF) vulnerability.
* Tweak - Update compatibility with WordPress 6.5
* Tweak - Update compatibility with WooCommerce 8.7

= 2.1.10 =
* Fix - Cross Site Request Forgery (CSRF) vulnerability.

Expand Down
Loading