From 17d10b3e9fcf83b1cbb01fcb0caeebb65e31ffcd Mon Sep 17 00:00:00 2001 From: Rami Yushuvaev Date: Mon, 14 Aug 2017 19:25:08 +0300 Subject: [PATCH] i18n: Fix some translation strings (#16441) * i18n: permissions -> permission * i18n: permissions -> permission --- includes/admin/class-wc-admin-webhooks.php | 6 +++--- includes/class-wc-auth.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/admin/class-wc-admin-webhooks.php b/includes/admin/class-wc-admin-webhooks.php index 9b84bc7ad67..695993c651f 100644 --- a/includes/admin/class-wc-admin-webhooks.php +++ b/includes/admin/class-wc-admin-webhooks.php @@ -201,7 +201,7 @@ class WC_Admin_Webhooks { } if ( ! current_user_can( 'publish_shop_webhooks' ) ) { - wp_die( __( 'You do not have permissions to create Webhooks!', 'woocommerce' ) ); + wp_die( __( 'You do not have permission to create Webhooks', 'woocommerce' ) ); } $webhook_id = wp_insert_post( array( @@ -286,7 +286,7 @@ class WC_Admin_Webhooks { } if ( ! current_user_can( 'edit_shop_webhooks' ) ) { - wp_die( __( 'You do not have permissions to edit Webhooks!', 'woocommerce' ) ); + wp_die( __( 'You do not have permission to edit Webhooks', 'woocommerce' ) ); } $webhooks = array_map( 'absint', (array) $_GET['webhook'] ); @@ -315,7 +315,7 @@ class WC_Admin_Webhooks { } if ( ! current_user_can( 'delete_shop_webhooks' ) ) { - wp_die( __( 'You do not have permissions to delete Webhooks!', 'woocommerce' ) ); + wp_die( __( 'You do not have permission to delete Webhooks', 'woocommerce' ) ); } $webhooks = get_posts( array( diff --git a/includes/class-wc-auth.php b/includes/class-wc-auth.php index d1886e76e30..a85a9fdcdb8 100644 --- a/includes/class-wc-auth.php +++ b/includes/class-wc-auth.php @@ -374,7 +374,7 @@ class WC_Auth { exit; } } else { - throw new Exception( __( 'You do not have permissions to access this page!', 'woocommerce' ) ); + throw new Exception( __( 'You do not have permission to access this page', 'woocommerce' ) ); } } catch ( Exception $e ) { $this->maybe_delete_key( $consumer_data );