From f967bd5ccb6ca112691faaab8140c7ebfcd3b1e3 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Wed, 20 Mar 2024 13:13:39 -0400 Subject: [PATCH] replace plugin name with dynamic value from container --- includes/DeactivationSurvey.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/DeactivationSurvey.php b/includes/DeactivationSurvey.php index 80f2e0a..51475d1 100644 --- a/includes/DeactivationSurvey.php +++ b/includes/DeactivationSurvey.php @@ -24,7 +24,7 @@ public function __construct() { $defaults = array( 'surveyAriaTitle' => __( 'Plugin Deactivation Survey', 'wp-module-deactivation' ), 'surveyTitle' => sprintf( - __( 'Thank you for using the %s plugin!', 'wp-module-deactivation' ), + __( 'Thank you for using the %s plugin!', 'wp-module-deactivation' ), ucwords( container()->plugin()->id ) ), 'surveyDesc' => __( 'Please take a moment to let us know why you\'re deactivating this plugin.', 'wp-module-deactivation' ), @@ -40,7 +40,10 @@ public function __construct() { 'continue' => __( 'Continue', 'wp-module-deactivation' ), 'continueAriaLabel' => __( 'Continue Deactivation', 'wp-module-deactivation' ), 'sureTitle' => __( 'Are you sure you want to deactivate?', 'wp-module-deactivation' ), - 'sureDesc' => __( 'If the Bluehost plugin is deactivated, these features will no longer work:', 'wp-module-deactivation' ), + 'sureDesc' => sprintf( + __( 'If the %s plugin is deactivated, these features will no longer work:', 'wp-module-deactivation' ), + ucwords( container()->plugin()->id ) + ), 'sureCards' => array( array( 'title' => sprintf(