Plugin Directory

Changeset 1319769


Ignore:
Timestamp:
01/02/2016 05:29:56 AM (10 years ago)
Author:
vividlteam
Message:

fix bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • thunder-port/trunk/simple_html_dom.php

    r1319396 r1319769  
    7575    $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
    7676    // For sourceforge users: uncomment the next line and comment the retreive_url_contents line 2 lines down if it is not already done.
    77     $contents = file_get_contents($url, $use_include_path, $context, $offset);
     77    // $contents = file_get_contents($url, $use_include_path, $context, $offset);
     78    $contents = wp_remote_get($url, $use_include_path, $context, $offset);
     79    $contents = wp_remote_retrieve_body( $contents );
     80           
    7881    // Paperg - use our own mechanism for getting the contents as we want to control the timeout.
    7982    //$contents = retrieve_url_contents($url);
Note: See TracChangeset for help on using the changeset viewer.