Use PAGE_ROOT to reduce redundancy (https://github.com/woocommerce/woocommerce-admin/pull/4238)
This commit is contained in:
parent
b07d69ddf8
commit
92d7b18b1b
|
@ -176,7 +176,7 @@ class PageController {
|
|||
}
|
||||
}
|
||||
|
||||
$woocommerce_breadcrumb = array( 'admin.php?page=wc-admin', __( 'WooCommerce', 'woocommerce-admin' ) );
|
||||
$woocommerce_breadcrumb = array( 'admin.php?page=' . self::PAGE_ROOT, __( 'WooCommerce', 'woocommerce-admin' ) );
|
||||
|
||||
array_unshift( $breadcrumbs, $woocommerce_breadcrumb );
|
||||
|
||||
|
|
Loading…
Reference in New Issue