6.2.0
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 towhile
loop inparse_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
andget_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
, andrender_warnings
methods fromclass-mainwp-child-server-information-base.php
andclass-mainwp-child-server-information.php
as they are no longer needed. [1] [2]
Version Updates:
- Updated version numbers from
6.1
to6.2
inMainWP_Child
class andget_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 refactoredcloneBackupCreationPolling
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