Plugin Directory

Changeset 204908


Ignore:
Timestamp:
02/13/2010 06:17:51 PM (16 years ago)
Author:
hendrikwill
Message:

adding version 0.4

Location:
wp-google-weather/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-google-weather/trunk/readme.txt

    r204904 r204908  
    7777= 0.4 - 13.02.2010 =
    7878* added shortcode support to use the widget on any post or page
     79* added wp_remote_fopen to fix curl problems (thanks ncrawford)
    7980* fixed CSS issues
    8081
  • wp-google-weather/trunk/wp-google-weather.php

    r204904 r204908  
    147147       
    148148        $xmlUrl = 'http://www.google.de/ig/api?weather='.$city.'&hl='.$lang;
    149 
    150         // create a new cURL resource
    151         $ch = curl_init();
    152         // set URL and other appropriate options
    153         curl_setopt($ch, CURLOPT_URL, $xmlUrl);
    154         curl_getinfo($ch);
    155         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);       
    156149       
    157150        // grab URL and pass it to the browser
    158         $output = curl_exec($ch);
    159        
    160         // close cURL resource, and free up system resources
    161         curl_close($ch);
     151        $output = wp_remote_fopen($xmlUrl);
    162152           
    163153        #load resource into a xmldom
Note: See TracChangeset for help on using the changeset viewer.