diff --git a/ngx-http-concat.php b/ngx-http-concat.php index 541b7ed..f55fe74 100644 --- a/ngx-http-concat.php +++ b/ngx-http-concat.php @@ -25,7 +25,7 @@ /* Constants */ // By default determine the document root from this scripts path in the plugins dir (you can hardcode this define) -define( 'CONCAT_FILES_ROOT', substr( dirname( __DIR__ ), 0, strpos( dirname( __DIR__ ), '/wp-content' ) ) ); +defined( 'CONCAT_FILES_ROOT' ) || define( 'CONCAT_FILES_ROOT', substr( dirname( __DIR__ ), 0, strpos( dirname( __DIR__ ), '/wp-content' ) ) ); function concat_http_status_exit( $status ) { switch ( $status ) {