Skip to content

Commit

Permalink
Commented out code that generated error on settings page when Element…
Browse files Browse the repository at this point in the history
…or is installed, on PHP 8+. Fixes #562
  • Loading branch information
rosell-dk committed May 6, 2022
1 parent 8a98327 commit a47b94a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/options/page-messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@
'for webp-enabled browsers.'
);
}
/*
Commented out.
In newer PHP, it generates a fatal (uncatchable) error:
Fatal error: Uncaught Error: Call to a member function is_feature_active() on null
$elementorActivated = in_array('elementor/elementor.php', get_option('active_plugins', []));
if ($elementorActivated) {
Expand All @@ -83,7 +87,7 @@
// Well, just bad luck.
}
}

*/

if (($config['operation-mode'] == 'cdn-friendly') && !$config['alter-html']['enabled']) {
//echo print_r(get_option('cache-enabler'), true);
Expand Down

0 comments on commit a47b94a

Please sign in to comment.