Merge pull request #20856 from woocommerce/fix/custom-menu-order
Allow custom menu ordering when set by another filter
This commit is contained in:
commit
20a6c40bdf
|
@ -215,10 +215,11 @@ class WC_Admin_Menus {
|
|||
/**
|
||||
* Custom menu order.
|
||||
*
|
||||
* @param bool $enabled Whether custom menu ordering is already enabled.
|
||||
* @return bool
|
||||
*/
|
||||
public function custom_menu_order() {
|
||||
return current_user_can( 'manage_woocommerce' );
|
||||
public function custom_menu_order( $enabled ) {
|
||||
return $enabled || current_user_can( 'manage_woocommerce' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue