Remove duplicated 'Coupons' menu entry and reorder them (https://github.com/woocommerce/woocommerce-admin/pull/878)

This commit is contained in:
Albert Juhé Lluveras 2018-11-16 14:34:40 -06:00 committed by GitHub
parent 741f5cc6c6
commit 2acdd04d7a
1 changed files with 8 additions and 16 deletions

View File

@ -109,6 +109,14 @@ function wc_admin_register_pages() {
)
);
wc_admin_register_page(
array(
'title' => __( 'Categories', 'wc-admin' ),
'parent' => '/analytics/revenue',
'path' => '/analytics/categories',
)
);
wc_admin_register_page(
array(
'title' => __( 'Coupons', 'wc-admin' ),
@ -125,22 +133,6 @@ function wc_admin_register_pages() {
)
);
wc_admin_register_page(
array(
'title' => __( 'Coupons', 'wc-admin' ),
'parent' => '/analytics/revenue',
'path' => '/analytics/coupons',
)
);
wc_admin_register_page(
array(
'title' => __( 'Categories', 'wc-admin' ),
'parent' => '/analytics/revenue',
'path' => '/analytics/categories',
)
);
if ( defined( 'WP_DEBUG' ) && WP_DEBUG && defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) {
wc_admin_register_page(
array(