From bac70547bd090c04f457194a18833a85d5d4c66d Mon Sep 17 00:00:00 2001 From: Imran Hossain Date: Tue, 23 May 2023 15:46:17 +0600 Subject: [PATCH] Remove case sensitivity from matching divi theme name --- includes/3rd-party/themes/divi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/3rd-party/themes/divi.php b/includes/3rd-party/themes/divi.php index a80d2f227c..2b0b0e3fde 100644 --- a/includes/3rd-party/themes/divi.php +++ b/includes/3rd-party/themes/divi.php @@ -95,7 +95,7 @@ function sensei_fix_divi_learning_mode_video_template_excerpt() { */ function sensei_load_learning_mode_style_for_divi_theme() { $course_id = Sensei_Utils::get_current_course(); - $is_course_theme = 'divi' === wp_get_theme()->get_template(); + $is_course_theme = 'divi' === strtolower( wp_get_theme()->get_template() ); if ( empty( $course_id ) || ! $is_course_theme ) { return false; @@ -110,7 +110,7 @@ function sensei_load_learning_mode_style_for_divi_theme() { * Enqueue Course theme-specific Learning Mode styles in the admin for the Site Editor and Lesson Editor. */ function sensei_admin_load_learning_mode_style_for_divi_theme() { - $is_course_theme = 'divi' === wp_get_theme()->get_template(); + $is_course_theme = 'divi' === strtolower( wp_get_theme()->get_template() ); if ( ! is_admin() || ! function_exists( 'get_current_screen' ) || ! $is_course_theme ) { return;