@@ -96,13 +96,6 @@ class Email_Sending extends Tasks_Interactive {
9696 */
9797 protected $ is_wp_mail_overridden = false ;
9898
99- /**
100- * The troubleshooting guide URL.
101- *
102- * @var string
103- */
104- protected $ troubleshooting_guide_url = 'https://prpl.fyi/troubleshoot-smtp ' ;
105-
10699 /**
107100 * Initialize the task provider.
108101 *
@@ -131,6 +124,15 @@ public function init() {
131124 );
132125 }
133126
127+ /**
128+ * Get the troubleshooting guide URL.
129+ *
130+ * @return string
131+ */
132+ protected function get_troubleshooting_guide_url () {
133+ return \esc_url ( \progress_planner ()->get_ui__branding ()->get_url ( 'https://prpl.fyi/troubleshoot-smtp ' ) );
134+ }
135+
134136 /**
135137 * We want task to be added always.
136138 *
@@ -208,7 +210,7 @@ public function enqueue_scripts( $hook ) {
208210 'ajax_url ' => \admin_url ( 'admin-ajax.php ' ),
209211 'nonce ' => \wp_create_nonce ( 'progress_planner ' ),
210212 'unknown_error ' => \esc_html__ ( 'Unknown error ' , 'progress-planner ' ),
211- 'troubleshooting_guide_url ' => \progress_planner ()-> get_ui__branding ()-> get_url ( $ this ->troubleshooting_guide_url ),
213+ 'troubleshooting_guide_url ' => $ this ->get_troubleshooting_guide_url ( ),
212214 ],
213215 ]
214216 );
@@ -300,7 +302,7 @@ public function the_popover_content() {
300302 'prpl_provider_id ' => $ this ->get_provider_id (),
301303 'prpl_email_subject ' => $ this ->email_subject ,
302304 'prpl_email_error ' => $ this ->email_error ,
303- 'prpl_troubleshooting_guide_url ' => \progress_planner ()-> get_ui__branding ()-> get_url ( $ this ->troubleshooting_guide_url ),
305+ 'prpl_troubleshooting_guide_url ' => $ this ->get_troubleshooting_guide_url ( ),
304306 'prpl_is_there_sending_email_override ' => $ this ->is_there_sending_email_override (),
305307 'prpl_task_actions ' => $ this ->get_task_actions (),
306308 ]
0 commit comments