Remove item "profiler" from the menu (https://github.com/woocommerce/woocommerce-admin/pull/4851)
* 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:
parent
ba12049b79
commit
88a83e4d84
|
@ -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',
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue