• Resolved Sultan

    (@sultan_semmaiyahoocom)


    hello as i have post a thread before it but i realized that i should leave the info and recommendation but i should remove this warning.

    WARNING: curl_init was found in the file framework/utilities/twitteroauth/twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

    Line 195: $ci = curl_init();

    WARNING: curl_exec was found in the file framework/utilities/twitteroauth/twitteroauth.php File operations should use the WP_Filesystem methods instead of direct PHP filesystem calls.

    Line 221: $response = curl_exec($ci);
    i know plugin author can solve it fro me please i am waiting what should i replaced instead of this.

    https://ww.wp.xz.cn/plugins/theme-check/

Viewing 1 replies (of 1 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    ww.wp.xz.cn Admin

    Instead of curl, use the various wp_remote functions to make HTTP requests.

    However, note that a theme shouldn’t be connecting to Twitter with OAuth. That falls under plugin territory, and a theme doing that would likely not be approved anyway.

Viewing 1 replies (of 1 total)

The topic ‘Warning on curl_init()’ is closed to new replies.