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