Remove warnings info and recommendation from my theme using theme check plugin

8 posts
  • 1 Year of Membership
  • Exclusive Author
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);

483 posts
  • Affiliate Level 1
  • Author Level 3
  • Collector Level 2
  • Exclusive Author
+1 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
  • 1 Year of Membership
  • Exclusive Author
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
  • 1 Year of Membership
  • Exclusive Author
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
  • 1 Year of Membership
  • Exclusive Author
spyrowebz
says

@drsankarl

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

8 posts
  • 1 Year of Membership
  • Exclusive Author
spyrowebz
says

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

by
by
by
by
by
by