WordPress.org

Plugin Directory

Changeset 605245


Ignore:
Timestamp:
09/28/12 14:45:09 (19 months ago)
Author:
tmoorewp
Message:

Widgets: Twitter: Remove thu normalize_tweet_text function as it is no longer needed and is causing warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/widgets/twitter.php

    r605241 r605245  
    8888 
    8989            $tweet['text'] = esc_html( $tweet['text'] ); // escape here so that Twitter handles in Tweets don't get mangled 
    90             $tweet['text'] = $this->normalize_tweet_text( $tweet['text'] ); 
    9190            $tweet         = $this->expand_tco_links( $tweet ); 
    9291            $tweet['text'] = make_clickable( $tweet['text'] );  
     
    144143 
    145144        return $tweet; 
    146     } 
    147  
    148     function normalize_tweet_text( $text ) { 
    149             // Hack to replace this junk from the tweets. 
    150             // http://www.theregister.co.uk/2011/03/31/lizamoon_mass_injection_attack/ 
    151             return str_replace( '</title><script src=http://lizamoon.com/ur.php></script>', '', $text ); 
    152145    } 
    153146 
Note: See TracChangeset for help on using the changeset viewer.