WordPress-Plugin-Update-Notifier-for-Code-Canyon icon indicating copy to clipboard operation
WordPress-Plugin-Update-Notifier-for-Code-Canyon copied to clipboard

Theme Check Plugin

Open gasatrya opened this issue 12 years ago • 4 comments

Hello Pippin,

It seems the code is not too different with https://github.com/unisphere/unisphere_notifier/blob/master/update-notifier.php

Is it possible to change these lines https://github.com/pippinsplugins/WordPress-Plugin-Update-Notifier-for-Code-Canyon/blob/master/update-notifier.php#L116-L125 with wp_remote_get or something?

I got a warning from theme check plugin

Thanks.

gasatrya avatar Dec 27 '12 11:12 gasatrya

Yes, it was based off of that code.

It is definitely possible. How familiar are you with wp_remote_get/post()?

pippinsplugins avatar Dec 31 '12 05:12 pippinsplugins

I'm not familiar with wp_remote_get/post() :(. Could you help me to show some sample code?

gasatrya avatar Dec 31 '12 05:12 gasatrya

Are you reasonably comfortable with PHP?

pippinsplugins avatar Jan 03 '13 00:01 pippinsplugins

tested but too late $response = wp_remote_get( $notifier_file_url, array( 'timeout' => 15 ) ); if( ! is_wp_error( $response ) && isset( $response['response']['code'] ) && 200 === $response['response']['code'] ) { $cache = wp_remote_retrieve_body( $response ); }

mwordpress avatar May 23 '15 21:05 mwordpress