Skip to content

Commit

Permalink
Merge pull request #909 from warfare-plugins/staging
Browse files Browse the repository at this point in the history
= 4.4.6.3 (5 Apr 2024) =
* Changed the visibility of `$key` property from `private` to `public` to allow external access and manipulation, enhancing the flexibility for class interactions.
* Changed the visibility of `$user_options` property from `private` to `public`, enabling direct access to user options pulled from the database. This adjustment aims to streamline processes that require external manipulation of user options.
  • Loading branch information
warfare-plugins authored Apr 7, 2024
2 parents 00c1045 + 433deab commit 603c6c2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/options/SWP_Option_Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@ class SWP_Option_Abstract {
*
* @var string
*/
protected $key;
public $key;

/**
* User options pulled from the database.
*
* @var array
*/
protected $user_options;
public $user_options;

/**
* The Construct Method
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: holas84, webinator, warfareplugins, cdegraff1, goqflash, andbalash
Tags: sharing buttons, social media share, floating share buttons, facebook share, linkedin share, pin it, pinterest save, mix button, tweet button, twitter share, click to tweet, social sharing buttons, social share, social sharing, social media sharing, wordpress social sharing plugin, social sharing plugin, share buttons, share counts
Requires at least: 4.5.0
Tested up to: 6.5
Stable tag: 4.4.6.2
Stable tag: 4.4.6.3
Requires PHP: 5.6
License: GNU General Public License v2.0 or later

Expand Down Expand Up @@ -182,6 +182,10 @@ We have a growing archive of <a href="https://warfareplugins.com/support/" rel="
> Robert Ryan, Professional Web Designer

== Changelog ==
= 4.4.6.3 (5 Apr 2024) =
* Changed the visibility of `$key` property from `private` to `public` to allow external access and manipulation, enhancing the flexibility for class interactions.
* Changed the visibility of `$user_options` property from `private` to `public`, enabling direct access to user options pulled from the database. This adjustment aims to streamline processes that require external manipulation of user options.

= 4.4.6.2 (3 Apr 2024) =
* Implemented stricter attribute sanitization in SWP_Buttons_Panel_Shortcode class to enhance security and mitigate the risk of cross-site scripting (XSS) attacks through shortcode attributes. This update introduces a more rigorous sanitization process for all attributes passed through the shortcode handling mechanism. The `sanitize_attributes` method now applies basic sanitization using `sanitize_text_field`, followed by a secondary sanitization step using a regex pattern to remove any remaining special characters that could be used in malicious injections.
- Enhanced `sanitize_attributes` method in SWP_Buttons_Panel_Shortcode class
Expand Down
6 changes: 3 additions & 3 deletions social-warfare.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Social Warfare
* Plugin URI: https://warfareplugins.com
* Description: A plugin to maximize social shares and drive more traffic using the fastest and most intelligent share buttons on the market, calls to action via in-post click-to-tweets, popular posts widgets based on share popularity, link-shortening, Google Analytics and much, much more!
* Version: 4.4.6.2
* Version: 4.4.6.3
* Author: Warfare Plugins
* Author URI: https://warfareplugins.com
* Text Domain: social-warfare
Expand All @@ -20,8 +20,8 @@
* @since 4.2.0 | 19 NOV 2020 | The str_replace() removes any linebreaks in the string.
*
*/
define( 'SWP_VERSION', '4.4.6.2' );
define( 'SWP_DEV_VERSION', '2024.04.03 MASTER' );
define( 'SWP_VERSION', '4.4.6.3' );
define( 'SWP_DEV_VERSION', '2024.04.05 MASTER' );
define( 'SWP_PLUGIN_FILE', __FILE__ );
define( 'SWP_PLUGIN_URL', str_replace( array( "\r", "\n" ), '', untrailingslashit( plugin_dir_url( __FILE__ ) ) ) );
define( 'SWP_PLUGIN_DIR', __DIR__ );
Expand Down

0 comments on commit 603c6c2

Please sign in to comment.