jeremyclark13 / automatic-theme-plugin-update

Self hosted plugin and theme update scripts
http://clark-technet.com/2010/12/wordpress-self-hosted-plugin-update-api
548 stars 147 forks source link

Function 'prepare_request' does not exist? #7

Closed delightedCrow closed 12 years ago

delightedCrow commented 12 years ago

Hi, when I run your plugin code I get an error saying that prepare_request does not exist (https://github.com/jeremyclark13/automatic-theme-plugin-update/blob/master/plugin/test-plugin-update/test-plugin-update.php#L44). I can't find where this function is defined -- is there a php package or class I should have to make this work, or am I just doing something ridiculous? Thanks!

jeremyclark13 commented 12 years ago

That was my fault I removed that function and updated to use the WordPress equivalent but I forgot to update the check function. I'll get that updated today and pushed back up. Thanks for the report.

jeremyclark13 commented 12 years ago

Issue fixed with 1.6.2.

stass-1 commented 11 years ago

Issue back again.

jeremyclark13 commented 11 years ago

Have you updated the update.php code in your plugin or theme folder with the new version. I had missed removing the call to the function in a previous version. But it should be working with the latest version.

michaelalhilly commented 9 years ago

It seems update.php still has the prepare_request function. What is the wp equivalent?