Changeset 178744
- Timestamp:
- 12/02/2009 11:14:43 AM (16 years ago)
- Location:
- wp-quote-tweets/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp_quotetweets.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-quote-tweets/trunk/readme.txt
r178446 r178744 128 128 = 4.1.1 = 129 129 * 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 2 2 /* 3 3 Plugin Name: WP Quote Tweets 4 Version: 4.1. 14 Version: 4.1.2 5 5 Description: Allows authors to quote Twitter tweets in posts or pages using a simple shortcode. [qtweet 123456789]. 6 6 Plugin URI: http://0xtc.com/2009/06/18/wordpress-plugin-wp-quote-tweets.xhtml … … 386 386 if (file_exists($filename)) { 387 387 $content = file_get_contents($filename); 388 if (str str($content,'<!DOCTYPE HTML PUBLIC')){388 if (stristr($content,'<!DOCTYPE HTML PUBLIC')){ 389 389 // "I'm afraid I can't do that Dave...." 390 390 unlink($filename); … … 411 411 if ($httpCode['http_code']==503) {return false;} 412 412 413 if (str str($content,'<!DOCTYPE HTML PUBLIC')){return false;}414 if (str str($content,'<HTML>')){return false;}415 if (str str($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;} 416 416 417 417 if (is_writable($TwitterCacheDir)){ … … 478 478 if (file_exists($filename)) { 479 479 $content = file_get_contents($filename); 480 if (str str($content,'<!DOCTYPE HTML PUBLIC')){480 if (stristr($content,'<!DOCTYPE HTML PUBLIC')){ 481 481 unlink($filename); 482 482 return false; … … 503 503 504 504 505 if (str str($content,'<HTML>')){return false;}506 if (str str($content,'<!DOCTYPE HTML PUBLIC')){return false;}507 if (str str($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;} 508 508 509 509 if (is_writable($TwitterCacheDir)){
Note: See TracChangeset
for help on using the changeset viewer.