8 posts
  • Sells items exclusively on Envato Market
spyrowebz says

i have developed a theme its give me the warning what should i replace instead of these?

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);

406 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in India
+2 more
drsankarl says

i have developed a theme its give me the warning what should i replace instead of these?

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);

Dont Worry too much about this warning and submit your theme. If this is going to be the reason for rejection, it will be soft rejection and then you can try using wp_remote_get. but as i have read in some forums here, it(the warnings) has been accepted.

8 posts
  • Sells items exclusively on Envato Market
spyrowebz says
Dont Worry too much about this warning and submit your theme. If this is going to be the reason for rejection, it will be soft rejection and then you can try using wp_remote_get. but as i have read in some forums here, it(the warnings) has been accepted.

yes i know its acceptable i have submitted themes with this warning but this time my client not want this.

8 posts
  • Sells items exclusively on Envato Market
spyrowebz says


i have developed a theme its give me the warning what should i replace instead of these?

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);
Dont Worry too much about this warning and submit your theme. If this is going to be the reason for rejection, it will be soft rejection and then you can try using wp_remote_get. but as i have read in some forums here, it(the warnings) has been accepted.

please can you help me how to use wp_remote_get?

8 posts
  • Sells items exclusively on Envato Market
spyrowebz says

@drsankarl

thanks it work thank you very much love you and your help.

8 posts
  • Sells items exclusively on Envato Market
spyrowebz says

strange when i upload to live server its not working its working only on localhost

by
by
by
by
by
by