Skip to content

Commit

Permalink
Google Fonts Error Fix Theme ver check - child
Browse files Browse the repository at this point in the history
  • Loading branch information
web-devise committed Aug 9, 2022
1 parent 497c1fa commit 6d4db16
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ocean-extra.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ public function __construct( $widget_areas = array() ) {
// Menu icons
$theme = wp_get_theme();
if ( 'OceanWP' == $theme->name || 'oceanwp' == $theme->template ) {

if ( ! is_child_theme() ) {
$current_theme_version = theme_version();
} else {
$current_theme_version = '3.3.3';
}
$required_theme_version = '3.3.3';

require_once OE_PATH . '/includes/panel/theme-panel.php';
require_once OE_PATH . '/includes/panel/integrations-tab.php';
$oe_library_active_status = get_option( 'oe_library_active_status', 'yes' );
Expand All @@ -126,7 +134,8 @@ public function __construct( $widget_areas = array() ) {

require_once OE_PATH . '/includes/themepanel/theme-panel.php';

if ( version_compare( theme_version(), '3.3.3' , '>' ) ) {

if ( ! empty( $current_theme_version ) && ! empty( $required_theme_version ) && version_compare( $current_theme_version, $required_theme_version , '>=' ) ) {
require_once OE_PATH . '/includes/compatibility/ocean.php';
}

Expand Down

0 comments on commit 6d4db16

Please sign in to comment.