* Lint detail solved

This commit resolves a small lint warning in the file Loader.php

* Removed "profiler" from menu

This commit removes the item "profiler" from the menu.

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
This commit is contained in:
Fernando 2020-07-22 15:24:33 -03:00 committed by GitHub
parent ba12049b79
commit 88a83e4d84
1 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ class Loader {
// Potentially enqueue minified JavaScript.
if ( 'js' === $ext ) {
$script_debug = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG;
$suffix = self::should_use_minified_js_file( $script_debug ) ? '.min' : '';
$suffix = self::should_use_minified_js_file( $script_debug ) ? '.min' : '';
}
return plugins_url( self::get_path( $ext ) . $file . $suffix . '.' . $ext, WC_ADMIN_PLUGIN_FILE );
@ -295,7 +295,7 @@ class Loader {
wc_admin_register_page(
array(
'title' => 'Profiler',
'parent' => 'woocommerce',
'parent' => '',
'path' => '/profiler',
)
);