From a120339e25c3da17a009da187a2563f484fe5f86 Mon Sep 17 00:00:00 2001 From: Curtis Loisel <curtis@voceconnect.com> Date: Tue, 14 Oct 2014 17:10:14 -0400 Subject: [PATCH] Adding the required parameter and returning to prevent fatal error --- wp-cdn-rewrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-cdn-rewrite.php b/wp-cdn-rewrite.php index 51bbb4c..1e6a9bb 100644 --- a/wp-cdn-rewrite.php +++ b/wp-cdn-rewrite.php @@ -46,7 +46,7 @@ if( !class_exists( 'CDN_Rewrite' ) ){ public function initialize() { if( !class_exists( 'Voce_Settings_API' ) ) - _doing_it_wrong( __CLASS__, 'The Voce Settings API plugin must be active for the CDN Rewrite plugin to work' ); + return _doing_it_wrong( __CLASS__, 'The Voce Settings API plugin must be active for the CDN Rewrite plugin to work', NULL ); $this->add_options_page(); if ('' == $this->file_extensions || '' == $this->cdn_root_url) { -- GitLab