Title: [Plugin: Akismet] admin.php don&#039;t check function appropriately
Last modified: August 20, 2016

---

# [Plugin: Akismet] admin.php don't check function appropriately

 *  [Zhuo](https://wordpress.org/support/users/allarem/)
 * (@allarem)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-akismet-adminphp-dont-check-function-appropriately/)
 * There is an checking function for fsockopen In Akismet 2.5.3 admin , although
   there is WordPress HTTP API to connect to Akismet server.
 * I think it’s time to upgrade the check function in admin.php
 * Here is diff
 *     ```
       diff admin.php  ~/www/blog/wp-content/plugins/akismet/admin.php
       166c166
       < 	if ( !function_exists('fsockopen') || !function_exists('gethostbynamel') ) {
       ---
       > 	if ( (!function_exists('fsockopen') || !function_exists('gethostbynamel')) && !function_exists('wp_remote_post') ) {
       706c706
       < 	if ( !function_exists('fsockopen') || !function_exists('gethostbynamel') )
       ---
       > 	if ( (!function_exists('fsockopen') || !function_exists('gethostbynamel')) && !function_exists('wp_remote_post') )
       ```
   
 * [http://wordpress.org/extend/plugins/akismet/](http://wordpress.org/extend/plugins/akismet/)

The topic ‘[Plugin: Akismet] admin.php don't check function appropriately’ is closed
to new replies.

 * ![](https://ps.w.org/akismet/assets/icon-256x256.png?rev=2818463)
 * [Akismet Anti-spam: Spam Protection](https://wordpress.org/plugins/akismet/)
 * [Support Threads](https://wordpress.org/support/plugin/akismet/)
 * [Active Topics](https://wordpress.org/support/plugin/akismet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/akismet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/akismet/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Zhuo](https://wordpress.org/support/users/allarem/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/plugin-akismet-adminphp-dont-check-function-appropriately/)
 * Status: not resolved