WordPress.org

Plugin Directory

Changeset 610227


Ignore:
Timestamp:
10/10/12 02:08:04 (19 months ago)
Author:
aaroncampbell
Message:

Handle extended characters in hashtags

Location:
twitter-widget-pro/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • twitter-widget-pro/trunk

    • Property svn:ignore
      •  

        old new  
         1.git 
         2.gitignore 
         3README.md 
        14*.komodoproject 
  • twitter-widget-pro/trunk/readme.txt

    r600216 r610227  
    174174= 2.4.0 = 
    175175* Better linking of URLs, especially handling of punctuation at end of URLs 
     176* Support for extended characters in hashtags 
     177* Allow externally linked images to serve via ssl 
    176178* More efficient regex for link parsing 
    177179* Link FTP links 
  • twitter-widget-pro/trunk/wp-twitter-widget.php

    r600209 r610227  
    449449     */ 
    450450    public function linkHashtags( $text ) { 
    451         $text = preg_replace_callback('/(^|\s)(#\w*)/i', array($this, '_linkHashtagsCallback'), $text); 
     451        $text = preg_replace_callback('/(^|\s)(#[\w\x{00C0}-\x{00D6}\x{00D8}-\x{00F6}\x{00F8}-\x{00FF}]*)/i', array($this, '_linkHashtagsCallback'), $text); 
    452452        return $text; 
    453453    } 
Note: See TracChangeset for help on using the changeset viewer.