SHARE
TWEET

Theme Test Drive plugin bugfix

jrf_nl Mar 13th, 2013 17 Never
  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.   }
RAW Paste Data
Top