diff --git a/includes/admin/class-wc-admin-notices.php b/includes/admin/class-wc-admin-notices.php index 37fec3328c2..58f7f81bb68 100644 --- a/includes/admin/class-wc-admin-notices.php +++ b/includes/admin/class-wc-admin-notices.php @@ -124,7 +124,7 @@ class WC_Admin_Notices { } if ( ! current_user_can( 'manage_woocommerce' ) ) { - wp_die( __( 'Cheatin’ huh?', 'woocommerce' ) ); + wp_die( __( 'You don’t have permission to do this.', 'woocommerce' ) ); } $hide_notice = sanitize_text_field( $_GET['wc-hide-notice'] ); diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index a39595b95c0..e83e48ded10 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -153,14 +153,14 @@ class WC_Checkout { * Cloning is forbidden. */ public function __clone() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Cloning is forbidden.', 'woocommerce' ), '2.1' ); } /** * Unserializing instances of this class is forbidden. */ public function __wakeup() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Unserializing instances of this class is forbidden.', 'woocommerce' ), '2.1' ); } /** diff --git a/includes/class-wc-emails.php b/includes/class-wc-emails.php index f8abe368daa..0ebf746b5c5 100644 --- a/includes/class-wc-emails.php +++ b/includes/class-wc-emails.php @@ -50,7 +50,7 @@ class WC_Emails { * @since 2.1 */ public function __clone() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Cloning is forbidden.', 'woocommerce' ), '2.1' ); } /** @@ -59,7 +59,7 @@ class WC_Emails { * @since 2.1 */ public function __wakeup() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Unserializing instances of this class is forbidden.', 'woocommerce' ), '2.1' ); } /** diff --git a/includes/class-wc-payment-gateways.php b/includes/class-wc-payment-gateways.php index b04e72ad318..8127f3134ad 100644 --- a/includes/class-wc-payment-gateways.php +++ b/includes/class-wc-payment-gateways.php @@ -48,7 +48,7 @@ class WC_Payment_Gateways { * @since 2.1 */ public function __clone() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Cloning is forbidden.', 'woocommerce' ), '2.1' ); } /** @@ -57,7 +57,7 @@ class WC_Payment_Gateways { * @since 2.1 */ public function __wakeup() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Unserializing instances of this class is forbidden.', 'woocommerce' ), '2.1' ); } /** diff --git a/includes/class-wc-shipping.php b/includes/class-wc-shipping.php index 4bbd1af69d2..41ba2d7741f 100644 --- a/includes/class-wc-shipping.php +++ b/includes/class-wc-shipping.php @@ -60,7 +60,7 @@ class WC_Shipping { * @since 2.1 */ public function __clone() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Cloning is forbidden.', 'woocommerce' ), '2.1' ); } /** @@ -69,7 +69,7 @@ class WC_Shipping { * @since 2.1 */ public function __wakeup() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Unserializing instances of this class is forbidden.', 'woocommerce' ), '2.1' ); } /** diff --git a/includes/class-woocommerce.php b/includes/class-woocommerce.php index 5fb0ccb5c27..a07a42210ad 100644 --- a/includes/class-woocommerce.php +++ b/includes/class-woocommerce.php @@ -123,7 +123,7 @@ final class WooCommerce { * @since 2.1 */ public function __clone() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Cloning is forbidden.', 'woocommerce' ), '2.1' ); } /** @@ -132,7 +132,7 @@ final class WooCommerce { * @since 2.1 */ public function __wakeup() { - wc_doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'woocommerce' ), '2.1' ); + wc_doing_it_wrong( __FUNCTION__, __( 'Unserializing instances of this class is forbidden.', 'woocommerce' ), '2.1' ); } /** diff --git a/includes/emails/class-wc-email.php b/includes/emails/class-wc-email.php index 4c28b6ab4a0..9c18d0e85d7 100644 --- a/includes/emails/class-wc-email.php +++ b/includes/emails/class-wc-email.php @@ -771,7 +771,7 @@ class WC_Email extends WC_Settings_API { } if ( ! current_user_can( 'edit_themes' ) ) { - wp_die( __( 'Cheatin’ huh?', 'woocommerce' ) ); + wp_die( __( 'You don’t have permission to do this.', 'woocommerce' ) ); } if ( ! empty( $_GET['move_template'] ) ) {