Plugin Directory

Changeset 178744


Ignore:
Timestamp:
12/02/2009 11:14:43 AM (16 years ago)
Author:
0xTC
Message:
 
Location:
wp-quote-tweets/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-quote-tweets/trunk/readme.txt

    r178446 r178744  
    128128= 4.1.1 =
    129129* Additional error handling.
     130
     131= 4.1.2 =
     132* Accommodating for "Twitter is Over Capacity" error.
  • wp-quote-tweets/trunk/wp_quotetweets.php

    r178446 r178744  
    22/*
    33Plugin Name: WP Quote Tweets
    4 Version: 4.1.1
     4Version: 4.1.2
    55Description: Allows authors to quote Twitter tweets in posts or pages using a simple shortcode. [qtweet 123456789].
    66Plugin URI:  http://0xtc.com/2009/06/18/wordpress-plugin-wp-quote-tweets.xhtml
     
    386386            if (file_exists($filename)) {
    387387                $content = file_get_contents($filename);
    388                 if (strstr($content,'<!DOCTYPE HTML PUBLIC')){
     388                if (stristr($content,'<!DOCTYPE HTML PUBLIC')){
    389389                    // "I'm afraid I can't do that Dave...."
    390390                    unlink($filename);
     
    411411                if ($httpCode['http_code']==503) {return false;}
    412412               
    413                 if (strstr($content,'<!DOCTYPE HTML PUBLIC')){return false;}
    414                 if (strstr($content,'<HTML>')){return false;}
    415                 if (strstr($content,'<hash>')){return false;}
     413                if (stristr($content,'<!DOCTYPE HTML PUBLIC')){return false;}
     414                if (stristr($content,'<HTML>')){return false;}
     415                if (stristr($content,'<hash>')){return false;}
    416416               
    417417                if (is_writable($TwitterCacheDir)){
     
    478478            if (file_exists($filename)) {
    479479                $content = file_get_contents($filename);               
    480                 if (strstr($content,'<!DOCTYPE HTML PUBLIC')){
     480                if (stristr($content,'<!DOCTYPE HTML PUBLIC')){
    481481                    unlink($filename);
    482482                    return false;
     
    503503               
    504504               
    505                 if (strstr($content,'<HTML>')){return false;}
    506                 if (strstr($content,'<!DOCTYPE HTML PUBLIC')){return false;}
    507                 if (strstr($content,'<hash>')){return false;}
     505                if (stristr($content,'<HTML>')){return false;}
     506                if (stristr($content,'<!DOCTYPE HTML PUBLIC')){return false;}
     507                if (stristr($content,'<hash>')){return false;}
    508508               
    509509                if (is_writable($TwitterCacheDir)){
Note: See TracChangeset for help on using the changeset viewer.