Merge pull request #6773 from axisthemes/menu-order

Simplify the condition for custom menu order
This commit is contained in:
Mike Jolley 2014-11-17 14:31:37 +00:00
commit 82145be444
2 changed files with 2 additions and 5 deletions

View File

@ -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:

View File

@ -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' );
}
/**