Plugin Directory

Changeset 135357


Ignore:
Timestamp:
07/15/2009 11:55:48 AM (17 years ago)
Author:
johncoswell
Message:

allow for using curl for increased compatibility

Location:
plugin-wonderful/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • plugin-wonderful/trunk/classes/PluginWonderful.php

    r132566 r135357  
    1919   */
    2020  function _retrieve_url($url) {
    21     return @file_get_contents($url);
     21    if (extension_loaded('curl')) {
     22      $ch = curl_init($url);
     23      curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
     24      $result = curl_exec($ch);
     25      curl_close($ch);
     26      return $result;
     27    } else {
     28      return @file_get_contents($url);
     29    }
    2230  }
    2331
  • plugin-wonderful/trunk/plugin-wonderful.php

    r132566 r135357  
    44Plugin URI: http://www.coswellproductions.com/wordpress/wordpress-plugins/
    55Description: Easily embed a Project Wonderful publisher's advertisements.
    6 Version: 0.5.1
     6Version: 0.5.2
    77Author: John Bintz
    88Author URI: http://www.coswellproductions.com/wordpress/
  • plugin-wonderful/trunk/readme.txt

    r132566 r135357  
    44Requires at least: 2.7
    55Tested up to: 2.8
    6 Stable tag: 0.5.1
     6Stable tag: 0.5.2
    77Donate link: http://www.coswellproductions.com/wordpress/wordpress-plugins/
    88
Note: See TracChangeset for help on using the changeset viewer.