WordPress.org

Plugin Directory

Changeset 396177


Ignore:
Timestamp:
06/12/11 07:23:26 (3 years ago)
Author:
mohanjith
Message:

Allow multiple links to be in the chat message

Location:
chat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chat/trunk/chat.php

    r396162 r396177  
    99 Author: S H Mohanjith (Incsub) 
    1010 WDP ID: 223 
    11  Version: 1.0.5 
     11 Version: 1.0.6 
    1212 Stable tag: trunk 
    1313 Author URI: http://premium.wpmudev.org 
     
    19401940                             
    19411941                            if(($message) != "\n" && ($message) != "<br />" && ($message) != "") { 
    1942                                     if(preg_match($reg_exUrl, $message, $url)) { 
    1943                                         $message = preg_replace($reg_exUrl, '<a href="'.$url[0].'" target="_blank">'.$url[0].'</a>', $message); 
     1942                                if(preg_match_all($reg_exUrl, $message, $urls) && isset($urls[0]) && count($urls[0]) > 0) { 
     1943                                    foreach ($urls[0] as $url) { 
     1944                                        $message = str_replace($url, '<a href="'.$url.'" target="_blank">'.$url.'</a>', $message); 
    19441945                                    } 
     1946                                } 
    19451947                            } 
    19461948                             
  • chat/trunk/readme.txt

    r395666 r396177  
    5555== ChangeLog == 
    5656 
     57= 1.0.6 = 
     58* Allow multiple links to be in the chat message 
     59 
    5760= 1.0.5 = 
    5861* Removing update notification 
Note: See TracChangeset for help on using the changeset viewer.