From aa057d244e5537f935bc7871dafa5a049272487f Mon Sep 17 00:00:00 2001 From: daomapsieucap Date: Tue, 16 Nov 2021 09:28:35 +0700 Subject: [PATCH] Make "Convert email text to link" be compatible with Divi theme. --- CHANGELOG.md | 4 ++++ changelog.txt | 5 +++++ fiberadmin.php | 4 ++-- includes/content.php | 3 +++ readme.txt | 9 ++++----- 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4f6a1e..cea7207 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ All notable changes to this project will be documented in this file. +## 1.5.10 - 2021-11-16 + +* Changed: Make "Convert email text to link" be compatible with Divi theme. + ## 1.5.9 - 2021-11-11 * Fixed: Fix error "This file type is not allowed for security reasons." when uploading SVG file. diff --git a/changelog.txt b/changelog.txt index 5095b00..1d29f2c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,10 @@ == Changelog == += 1.5.10= +*Release Date - 16 November 2021* + +* Changed: Make "Convert email text to link" be compatible with Divi theme. + = 1.5.9= *Release Date - 11 November 2021* diff --git a/fiberadmin.php b/fiberadmin.php index 244af6f..3acc99b 100644 --- a/fiberadmin.php +++ b/fiberadmin.php @@ -3,7 +3,7 @@ * Plugin Name: Fiber Admin * Plugin URI: https://wordpress.org/plugins/fiber-admin/ * Description: 💈 Another helpful admin with some extra functions for WordPress backend - * Version: 1.5.9 + * Version: 1.5.10 * Requires at least: 5.2 * Requires PHP: 7.2 * Author: Dao @@ -25,7 +25,7 @@ * Definitions */ -define('FIBERADMIN_VERSION', '1.5.9'); +define('FIBERADMIN_VERSION', '1.5.10'); define("FIBERADMIN_FILENAME", __FILE__); define("FIBERADMIN_DIR", plugin_dir_path(__FILE__)); define("FIBERADMIN_ASSETS_URL", plugin_dir_url(__FILE__) . 'assets/'); diff --git a/includes/content.php b/includes/content.php index f8d0709..c0658f5 100644 --- a/includes/content.php +++ b/includes/content.php @@ -12,6 +12,9 @@ public function __construct(){ // Convert email text to link if(!fiad_get_miscellaneous_option('disable_email_converter')){ add_filter('the_content', array($this, 'fiad_auto_convert_email_address')); + + // Divi theme + add_filter('et_builder_render_layout', array($this, 'fiad_auto_convert_email_address')); } // Content protection diff --git a/readme.txt b/readme.txt index 00297d6..54fef75 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: white label, admin tool, duplicate post, content protection Requires at least: 4.7 Tested up to: 5.8.2 Requires PHP: 5.6 -Stable tag: 1.5.9 +Stable tag: 1.5.10 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -46,8 +46,7 @@ At the first time using this setting, Fiber Admin will ask you to save it first. == Changelog == -= 1.5.9= -*Release Date - 11 November 2021* += 1.5.10= +*Release Date - 16 November 2021* -* Fixed: Fix error "This file type is not allowed for security reasons." when uploading SVG file. -* Fixed: WordPress media preview is not working for SVG images. \ No newline at end of file +* Changed: Make "Convert email text to link" be compatible with Divi theme. \ No newline at end of file