What's Changed
This release includes multiple changes across various files to improve error handling, code readability, and functionality. The most important changes include the refactoring of AJAX handlers, enhancements to CSS parsing, updates to connection data handling, and improvements in error logging.
Refactoring and Error Handling:
class/class-mainwp-child-back-wp-up.php
: Refactored themainwp_backwpup_wp_die_ajax_handler
function to be a static method and updated the AJAX handler filter to use a class method. [1] [2] [3]class/class-mainwp-child-keys-manager.php
: Added a catch block for generic exceptions to improve error handling.
CSS Parsing Enhancements:
class/class-mainwp-child-branding.php
: Changed the loop structure inparse_css_rebuild
from afor
loop to awhile
loop for better readability and added checks to handle empty rules. [1] [2] [3] [4]
Connection Data Handling:
class/class-mainwp-child-callable.php
: Updated thedisconnect
anddeactivate
methods to calldelete_connection_data
for better management of connection data. [1] [2]
Server Information and Warnings:
class/class-mainwp-child-server-information-base.php
: Removed theget_warnings
method and updated theget_mainwp_version
method to return the latest version. [1] [2]class/class-mainwp-child-server-information.php
: Removed theinit
,dismiss_warnings
, andrender_warnings
methods to streamline the server information class. [1] [2]
Miscellaneous:
class/class-mainwp-child-jetpack-protect.php
: Added error handling for version compatibility in theget_scan_status
method.class/class-mainwp-child-posts.php
: Fixed a conditional check to correctly retrieve the URL of the featured image. [1] [2]
These changes collectively aim to enhance the robustness and maintainability of the codebase.
Full Changelog: 6.2.0...6.3.1
What's Changed
- V6.3.1 by @xandy3br in #9
- V6.3.1 by @xandy3br in #10
- V6.3.1 by @xandy3br in #11
- V6.3.1 by @xandy3br in #12
Full Changelog: 6.2.0...6.3.1