Title: Bug report &#8211; please get a GitHub/GitLab/something account
Last modified: October 12, 2021

---

# Bug report – please get a GitHub/GitLab/something account

 *  Resolved [Dan Griffiths](https://wordpress.org/support/users/evertiro/)
 * (@evertiro)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/bug-report-please-get-a-github-gitlab-something-account/)
 * There has been a display bug on the last several versions of the plugin. The 
   bug is at line 39 of `terminal-for-stripe-and-woocommerce.php`. The current code
   block is as follows:
 *     ```
       if($alert['success']){
           $alert = $alert['success'];
           preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $alert, $match);
           if(!empty($match[0])){
               foreach($match[0] as $m){
                   $alert = str_replace($m,'<a target="_blank" class="wc-update-now button-primary" href="'.$m.'">'.$m.'</a>',$alert);
               }
           }
           echo '<div class="notice notice-warning"><p>'.$alert.'</p></div>';
       }
       ```
   
 * The echo line doesn’t take into account situations where there is no alert, and
   displays a very annoying, undismissable empty alert. The following fixes it:
 *     ```
       if($alert['success']){
           $alert = $alert['success'];
           preg_match_all('#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#', $alert, $match);
           if(!empty($match[0])){
               foreach($match[0] as $m){
                   $alert = str_replace($m,'<a target="_blank" class="wc-update-now button-primary" href="'.$m.'">'.$m.'</a>',$alert);
               }
           }
           if ( '' !== trim( $alert ) ) {
               echo '<div class="notice notice-warning"><p>'.$alert.'</p></div>';
           }
       }
       ```
   
 * Please fix it, I don’t want to have to keep modifying your plugin and I don’t
   have the energy to write my own.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [arcanedevops](https://wordpress.org/support/users/arcanedevops/)
 * (@arcanedevops)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/bug-report-please-get-a-github-gitlab-something-account/#post-14967649)
 * Hi Dan,
 * We can certainly include this in the 2.1.3 release next week.
 *  Plugin Author [arcanedevops](https://wordpress.org/support/users/arcanedevops/)
 * (@arcanedevops)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/bug-report-please-get-a-github-gitlab-something-account/#post-15048357)
 * Hi Dan,
    This should be all sorted out now in v2.1.3. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Bug report – please get a GitHub/GitLab/something account’ is closed 
to new replies.

 * ![](https://ps.w.org/terminal-for-stripe-and-woocommerce/assets/icon-256x256.
   png?rev=2607478)
 * [Terminal for Stripe and WooCommerce](https://wordpress.org/plugins/terminal-for-stripe-and-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/terminal-for-stripe-and-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/terminal-for-stripe-and-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/terminal-for-stripe-and-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/terminal-for-stripe-and-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/terminal-for-stripe-and-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [arcanedevops](https://wordpress.org/support/users/arcanedevops/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/bug-report-please-get-a-github-gitlab-something-account/#post-15048357)
 * Status: resolved