Skip to content

Commit

Permalink
fix: fix fatal error when debug mode active (#1826)
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiulodro authored and dkoo committed Aug 10, 2022
1 parent c3291db commit 340cf85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/optional-modules/class-rss.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public static function maybe_init() {
* Initialise.
*/
public static function init() {
if ( ! function_exists( 'is_plugin_active' ) ) {
include_once ABSPATH . 'wp-admin/includes/plugin.php';
}

// If the standalone plugin is active, deactivate it and activate as a module.
if ( is_plugin_active( 'newspack-rss-enhancements/newspack-rss-enhancements.php' ) ) {
deactivate_plugins( 'newspack-rss-enhancements/newspack-rss-enhancements.php' );
Expand Down

0 comments on commit 340cf85

Please sign in to comment.