Changeset 204908
- Timestamp:
- 02/13/2010 06:17:51 PM (16 years ago)
- Location:
- wp-google-weather/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
wp-google-weather.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-google-weather/trunk/readme.txt
r204904 r204908 77 77 = 0.4 - 13.02.2010 = 78 78 * added shortcode support to use the widget on any post or page 79 * added wp_remote_fopen to fix curl problems (thanks ncrawford) 79 80 * fixed CSS issues 80 81 -
wp-google-weather/trunk/wp-google-weather.php
r204904 r204908 147 147 148 148 $xmlUrl = 'http://www.google.de/ig/api?weather='.$city.'&hl='.$lang; 149 150 // create a new cURL resource151 $ch = curl_init();152 // set URL and other appropriate options153 curl_setopt($ch, CURLOPT_URL, $xmlUrl);154 curl_getinfo($ch);155 curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);156 149 157 150 // 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); 162 152 163 153 #load resource into a xmldom
Note: See TracChangeset
for help on using the changeset viewer.