Merge pull request #6773 from axisthemes/menu-order
Simplify the condition for custom menu order
This commit is contained in:
commit
82145be444
|
@ -4,7 +4,7 @@ Community made patches, localisations, bug reports and contributions are always
|
|||
|
||||
When contributing please ensure you follow the guidelines below so that we can keep on top of things.
|
||||
|
||||
__Note:__
|
||||
__Note:__
|
||||
|
||||
GitHub is for *bug reports and contributions only* - if you have a support question or a request for a customization don't post here. Use [WooThemes Support](http://support.woothemes.com) for customer support, [WordPress.org](http://wordpress.org/support/plugin/woocommerce) for community support, and for customisations we recommend one of the following services:
|
||||
|
||||
|
|
|
@ -190,10 +190,7 @@ class WC_Admin_Menus {
|
|||
* @return bool
|
||||
*/
|
||||
public function custom_menu_order() {
|
||||
if ( ! current_user_can( 'manage_woocommerce' ) ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return current_user_can( 'manage_woocommerce' );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue