Skip to content

Commit be0401c

Browse files
committed
Eliminate local env check
1 parent f54c488 commit be0401c

File tree

1 file changed

+1
-5
lines changed
  • plugins/performance-lab/includes/admin

1 file changed

+1
-5
lines changed

plugins/performance-lab/includes/admin/load.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,7 @@ function perflab_get_asset_path( string $src_path, ?string $min_path = null ): s
229229
}
230230

231231
$force_src = false;
232-
if (
233-
( WP_DEBUG || wp_get_environment_type() === 'local' )
234-
&&
235-
! file_exists( PERFLAB_PLUGIN_DIR_PATH . $min_path )
236-
) {
232+
if ( WP_DEBUG && ! file_exists( PERFLAB_PLUGIN_DIR_PATH . $min_path ) ) {
237233
$force_src = true;
238234
wp_trigger_error(
239235
__FUNCTION__,

0 commit comments

Comments
 (0)