Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Theme Test Drive plugin bugfix

By: jrf_nl on Mar 13th, 2013  |  syntax: PHP  |  size: 0.49 KB  |  views: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. // This is the fixed function code
  2.   function themedrive_getinfo()
  3.   {
  4.           global $themedrive_localversion;
  5.  
  6.       $checkfile = "http://svn.wp-plugins.org/theme-test-drive/trunk/themedrive.chk";
  7.      
  8.       $status = array();
  9. //      return $status;
  10.       $vcheck = wp_remote_fopen($checkfile);
  11.      
  12.       if ($vcheck) {
  13.           $version = $themedrive_localversion;
  14.          
  15.           $status = explode('@', $vcheck);
  16. //          return $status;
  17.       }
  18.       return $status;
  19.   }