diff --git a/includes/wc-user-functions.php b/includes/wc-user-functions.php index 2a98693d22c..fda2c738a6f 100644 --- a/includes/wc-user-functions.php +++ b/includes/wc-user-functions.php @@ -384,9 +384,7 @@ add_filter( 'user_has_cap', 'wc_customer_has_capability', 10, 3 ); function wc_shop_manager_has_capability( $allcaps, $caps, $args, $user ) { if ( wc_user_has_role( $user, 'shop_manager' ) ) { - /** - * @see wc_modify_map_meta_cap, which limits editing to customers. - */ + // @see wc_modify_map_meta_cap, which limits editing to customers. $allcaps['edit_users'] = true; } diff --git a/tests/unit-tests/customer/functions.php b/tests/unit-tests/customer/functions.php index 86815e95ed1..812ed590a99 100644 --- a/tests/unit-tests/customer/functions.php +++ b/tests/unit-tests/customer/functions.php @@ -1,8 +1,12 @@ 'John', - 'last_name' => 'Doe' + 'last_name' => 'Doe', ) ); $userdata = get_userdata( $id ); @@ -83,7 +87,7 @@ class WC_Tests_Customer_Functions extends WC_Unit_Test_Case { $order2 = new WC_Order(); $order2->save(); - // Test download permissions + // Test download permissions. $prod_download = new WC_Product_Download(); $prod_download->set_file( plugin_dir_url( __FILE__ ) . '/assets/images/help.png' ); $prod_download->set_id( 'download' );