Browse Source

underscores are allowed in URLs

mxmehl 3 years ago
parent
commit
5076222243
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      better-twitter-widget.php

+ 1
- 1
better-twitter-widget.php View File

@@ -424,7 +424,7 @@ class better_twitter_widget extends WP_Widget {
424 424
                 $search = array();
425 425
                 $search[0] = '/([\s>\-\.])#([[:alnum:]öäü]+)/i';  // text #hash text; >#hash text
426 426
                 $search[1] = '/([\s>\-\.])@([[:alnum:]_]+)/';  // @user
427
-                $search[2] = '/([\s>\-\.])(https?:[\/[:alnum:]\.\?\&#\=\%\+\-]+)/';  // http...
427
+                $search[2] = '/([\s>\-\.])(https?:[\/[:alnum:]\.\?\&#\=\%\+\-\_]+)/';  // http...
428 428
 
429 429
                 $replace = array();
430 430
                 $replace[0] = '$1<a target="_blank" href="http://twitter.com/search?q=%23$2">#$2</a>';

Loading…
Cancel
Save