From 2c60e98333414f188b3fe503057782baa4d4a017 Mon Sep 17 00:00:00 2001 From: Thang Hoang Van Date: Tue, 18 Apr 2023 23:45:18 +0700 Subject: [PATCH] Fixed: An issue with saving code snippets Fixed: A problem with removing allowed tags in post titles Fixed: Multiple PHP warnings Added: Check for specific hosts that disable WordPress Core updates for users --- class/class-mainwp-child-server-information.php | 3 +++ class/class-mainwp-child.php | 2 +- mainwp-child.php | 2 +- readme.txt | 8 +++++++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/class/class-mainwp-child-server-information.php b/class/class-mainwp-child-server-information.php index f1d08722..cbe1525d 100644 --- a/class/class-mainwp-child-server-information.php +++ b/class/class-mainwp-child-server-information.php @@ -1317,6 +1317,9 @@ protected static function render_last_lines( $path, $line_count, $block_size = 5 // phpcs:disable WordPress.WP.AlternativeFunctions -- to custom read file. $fh = fopen( $path, 'r' ); + if ( false === $fh || ! is_resource( $fh ) ) { + return $lines; + } // go to the end of the file. fseek( $fh, 0, SEEK_END ); diff --git a/class/class-mainwp-child.php b/class/class-mainwp-child.php index df575030..0f287055 100644 --- a/class/class-mainwp-child.php +++ b/class/class-mainwp-child.php @@ -33,7 +33,7 @@ class MainWP_Child { * * @var string MainWP Child plugin version. */ - public static $version = '4.4.1-beta1'; + public static $version = '4.4.1'; /** * Private variable containing the latest MainWP Child update version. diff --git a/mainwp-child.php b/mainwp-child.php index 6b303448..2d792b68 100644 --- a/mainwp-child.php +++ b/mainwp-child.php @@ -12,7 +12,7 @@ * Author: MainWP * Author URI: https://mainwp.com * Text Domain: mainwp-child - * Version: 4.4.1-beta1 + * Version: 4.4.1 * Requires at least: 5.4 * Requires PHP: 7.4 */ diff --git a/readme.txt b/readme.txt index 72c9b418..db45edfe 100644 --- a/readme.txt +++ b/readme.txt @@ -7,7 +7,7 @@ Plugin URI: https://mainwp.com Requires at least: 5.4 Tested up to: 6.2 Requires PHP: 7.0 -Stable tag: 4.4.1-beta1 +Stable tag: 4.4.1 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html @@ -147,6 +147,12 @@ Sure we have a quick FAQ with a lot more questions and answers [here](https://ma == Changelog == += 4.4.1 - 4-18-2023 = +* Fixed: An issue with saving code snippets +* Fixed: A problem with removing allowed tags in post titles +* Fixed: Multiple PHP warnings +* Added: Check for specific hosts that disable WordPress Core updates for users + = 4.4.0.4 - 3-30-2023 = * Fixed: JS conflict caused by the Hide Jetpack plugin feature