Releases: warfare-plugins/social-warfare
Releases · warfare-plugins/social-warfare
4.5.4
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
This changelog covers updates for version 4.5.4.
[4.5.4] - 2024-09-10
Added
- Added
CHANGELOG.md
to improve version tracking and transparency. - Added the
WpOrg\Requests\Requests
namespace toSWP_Requests.php
to address the PSR-0 deprecation warning. - Fix Pinterest share button to include
href
for SEO while preserving onclick functionality.
Changed
- Updated stable tag and version numbers to 4.5.4.
- Enhanced security by updating
SECURITY.md
to support versions >= 4.5.0. - Updated block category filter in
blocks.php
to align with the latest WordPress standards. - Removed deprecated Facebook options from
SWP_Options_Page
.
Fixed
- Enabled
WP_DEBUG_LOG
and disabledWP_DEBUG_DISPLAY
to improve debugging without affecting the site's frontend display. - Bumped dependencies including
@wordpress/icons
,@wordpress/scripts
,@wordpress/env
, and others to ensure compatibility and security. - Resolved PHP deprecation warning by explicitly declaring the
$response
property in theSWP_Twitter
class, ensuring compatibility with future PHP versions. - Fixed Pinterest share button by adding an
href
attribute for SEO while retaining theonclick
functionality for proper user interaction.
4.5.3
Changelog
Version 4.5.3
Merged Pull Requests:
- Merged
staging
into the main branch. (PR: #921 by @goqflash) - Merged
master
into the main branch. (PR: andbalashov#40 by @andbalashov)
Updates:
- Updated stable tag and version numbers to 4.5.3. (Commit:
chore: Update plugin version to 4.5.3
by @andbalashov) - Updated allowed HTML tags and attributes in
SWP_Header_Output.php
to enhance security and compatibility. (Commit:chore: Update allowed HTML tags and attributes for SWP_Header_Output.php
by @andbalashov)
4.5.2
Changelog
Version 4.5.2
-
Merged Pull Requests:
- Merged
staging
into the main branch. (PR:#59
by @goqflash) - Merged
master
into the main branch. (PR:#8
by @andbalashov) - Merged
staging
into the main branch. (PR:#919
by @andbalashov) - Merged
master
into the main branch. (PR:#39
by @andbalashov)
- Merged
-
Updates:
- Updated stable tag and version numbers to
4.5.2
. (Commit:30f24f2
by @andbalashov) - Changed hook from
wp
towp_loaded
for deferred class instantiation to improve performance and compatibility. (Commit:71433c5
by @andbalashov) - Updated plugin version to
4.5.2
. (Commit:f4be800
by @andbalashov)
- Updated stable tag and version numbers to
4.5.1
Version 4.5.1 - Release Notes
Enhancements:
- Updated
.wp-env.json
withsocial-warfare-pro
plugin version 4.5.1
Refactoring:
- Improved security by updating
SWP_Addon.php
to use 'security' instead of 'nonce'. - Updated
SWP_Options_Page.php
to use translation functions for better internationalization support.
Maintenance:
- Updated plugin version to 4.5.1.
4.5.0
Release for v.4.5.0
This Version v4.5.0 includes several updates and improvements.
Below is a summary of the commits included in this merge.
Summary of Updates
- Implemented linting and WP ENV for local development
- Added PHPCS ruleset
- Removed coding standards workflow file
- Added compiled HTML property to
SWP_Notice
class - Created and updated
CODEOWNERS
- Removed unnecessary lines and comments
- Added API URLs array to
SWP_Post_Cache
class - Created
dependabot.yml
- Updated multiple dependencies and workflows
- Added Security Policy
- Refactored PHPDoc comments and auto-registered widget in
SWP_Popular_Posts_Widget
- Escaped HTML output in
SWP_Widget.php
- Enhanced form rendering in
SWP_Popular_Posts_Widget.php
- Updated meta_key in
SWP_Popular_Posts_Widget
- Optimized settings storage and HTML tag stripping in
SWP_Utility.php
- Modified 'excerpt_more' filter
- Removed screen options tab from admin page
- Corrected variable name typo in
SWP_Utility.php
- Refactored and improved readability, naming conventions, and security in multiple classes
Refactors include:
- Removed unused parameters and legacy AJAX methods
- Consolidated cache rebuild methods
- Improved caching mechanism for image attachments
- Used
wp_json_encode()
instead ofjson_encode()
- Updated SQL query to use prepared statements
- Enhanced debug function with nonce verification
Other Changes:
- Created persistent notices
- Updated README.md
4.4.6.3
= 4.4.6.3 (5 Apr 2024) =
- Changed the visibility of
$key
property fromprivate
topublic
to allow external access and manipulation, enhancing the flexibility for class interactions. - Changed the visibility of
$user_options
property fromprivate
topublic
, 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
= 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 usingsanitize_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 - Added regex pattern to remove special characters from attribute values after initial sanitization
- Enhanced
4.4.6.1
= 4.4.6.1 (21 Mar 2024) =
- Updated social sharing buttons style, providing a modern look and improving user interface design. Issue #900 (#900)
- Removed Facebook share count functionality, simplifying the display and enhancing performance.
- Upgraded SWP_Database_Migration class to version 4.4.6.1, introducing new methods and improvements for database handling.
- Fixed an initialization issue in the SWP_Database_Migration class, ensuring smooth operation and compatibility with the latest WordPress versions.
4.4.6
= 4.4.6 (12 Mar 2024) =
- Introduced a caching mechanism for analytics data, significantly reducing database load and enhancing page load speeds. Further details at #826.
- Optimized the
record_share_counts
method to eliminate redundant database updates, now incorporating checks against existing data for efficiency. - Deployed transient caching for social share counts, effectively minimizing database query frequency and its performance impact.
- Implemented strategic database query optimizations, including indexing recommendations, to accelerate query processing.
- Strengthened error handling and validation in the analytics update workflow, safeguarding data accuracy and integrity.
- Refactored analytics data management to bolster maintainability and alignment with WordPress coding standards.
- Addressed the post-preview anomaly in Social Warfare Pro, rectifying the 'undefined' URL or page not found error, as documented at #897.
4.4.5
= 4.4.5 (01 JAN 2024) =
- WordPress Coding Standards
- Remove Google Plus functions