[wp-hackers] wp_die vs hooking into admin_notices
Peter Westwood
peter.westwood at ftwr.co.uk
Fri Jan 28 17:54:46 UTC 2011
On 28 Jan 2011, at 17:41, Ozh wrote:
> The best way would be not to rely on curl but use the HTTP API instead.
> http://codex.wordpress.org/HTTP_API
>
And the second thing is not to abuse an activation hook like this.
If your plugin needs something check in in code run on admin_init and display an admin_notice.
Cheers
--
Peter Westwood
http://blog.ftwr.co.uk | http://westi.wordpress.com
C53C F8FC 8796 8508 88D6 C950 54F4 5DCD A834 01C5
More information about the wp-hackers
mailing list