diff options
author | 2017-09-20 09:51:53 -0400 | |
---|---|---|
committer | 2017-09-20 09:51:53 -0400 | |
commit | 50c34abdca1c205877732ca856cadb35ea61e626 (patch) | |
tree | 4cec06ac22d1f32e44e268aa193cf5e69d45a525 /plugins/akismet/akismet.php | |
parent | Update wordpress-mobile-pack 3.1 (diff) | |
download | blogs-gentoo-50c34abdca1c205877732ca856cadb35ea61e626.tar.gz blogs-gentoo-50c34abdca1c205877732ca856cadb35ea61e626.tar.bz2 blogs-gentoo-50c34abdca1c205877732ca856cadb35ea61e626.zip |
akismet 4.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/akismet/akismet.php')
-rw-r--r-- | plugins/akismet/akismet.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/akismet/akismet.php b/plugins/akismet/akismet.php index 9894295b..56babcba 100644 --- a/plugins/akismet/akismet.php +++ b/plugins/akismet/akismet.php @@ -6,7 +6,7 @@ Plugin Name: Akismet Anti-Spam Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. It keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. -Version: 3.3.4 +Version: 4.0 Author: Automattic Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later @@ -37,8 +37,8 @@ if ( !function_exists( 'add_action' ) ) { exit; } -define( 'AKISMET_VERSION', '3.3.4' ); -define( 'AKISMET__MINIMUM_WP_VERSION', '3.7' ); +define( 'AKISMET_VERSION', '4.0' ); +define( 'AKISMET__MINIMUM_WP_VERSION', '4.0' ); define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'AKISMET_DELETE_LIMIT', 100000 ); @@ -47,9 +47,12 @@ register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' ); require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' ); +require_once( AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php' ); add_action( 'init', array( 'Akismet', 'init' ) ); +add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) ); + if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) { require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' ); add_action( 'init', array( 'Akismet_Admin', 'init' ) ); |