Skip to content

Releases: Apiki/mainwp-child

v6.3.1

26 Dec 12:36
3320f31
Compare
Choose a tag to compare

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 the mainwp_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 in parse_css_rebuild from a for loop to a while 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 the disconnect and deactivate methods to call delete_connection_data for better management of connection data. [1] [2]

Server Information and Warnings:

  • class/class-mainwp-child-server-information-base.php: Removed the get_warnings method and updated the get_mainwp_version method to return the latest version. [1] [2]
  • class/class-mainwp-child-server-information.php: Removed the init, dismiss_warnings, and render_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 the get_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

Full Changelog: 6.2.0...6.3.1

6.2.0

30 Sep 17:42
fb835fb
Compare
Choose a tag to compare

What's Changed

This release includes several changes to improve code readability, fix bugs, and update version numbers across multiple files. The most important changes include refactoring loops, adding error handling, fixing conditional logic, removing obsolete methods, and updating version numbers.

Code Refactoring and Bug Fixes:

  • Refactored for loop to while loop in parse_css_rebuild method to enhance readability (class/class-mainwp-child-branding.php).
  • Fixed conditional logic to correctly check if the featured image is not empty in get_post_edit and get_page_edit methods (class/class-mainwp-child-posts.php). [1] [2]
  • Added a catch block for generic exceptions in decrypt_string method to handle unexpected errors (class/class-mainwp-child-keys-manager.php).

Removal of Obsolete Methods:

  • Removed get_warnings, init, dismiss_warnings, and render_warnings methods from class-mainwp-child-server-information-base.php and class-mainwp-child-server-information.php as they are no longer needed. [1] [2]

Version Updates:

  • Updated version numbers from 6.1 to 6.2 in MainWP_Child class and get_mainwp_version method to reflect the latest release (class/class-mainwp-child.php, class/class-mainwp-child-server-information-base.php). [1] [2]

JavaScript Enhancements:

  • Added pollingBackupInfo object and refactored cloneBackupCreationPolling function to improve backup creation polling logic (class/class-mainwp-clone-page.php). [1] [2]

Miscellaneous:

  • Replaced array destructuring with list() for compatibility in various methods (class/class-mainwp-clone-page.php, class/class-mainwp-child-server-information.php). [1] [2] [3]

Full Changelog: 6.1.0...6.2.0

6.1.0

25 Jul 20:03
7e6e711
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: https://github.com/Apiki/mainwp-child/commits/6.1.0