diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-09-11 08:05:14 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-09-11 08:05:14 -0400 |
commit | 061978f388440351592eab7cde0b81a5ec5be683 (patch) | |
tree | 1230eb6d73b924facc0d714637a079fac398d78d /plugins/akismet/akismet.php | |
parent | Update plugin wordpress-mobile-pack to 2.2.5 (diff) | |
download | blogs-gentoo-061978f388440351592eab7cde0b81a5ec5be683.tar.gz blogs-gentoo-061978f388440351592eab7cde0b81a5ec5be683.tar.bz2 blogs-gentoo-061978f388440351592eab7cde0b81a5ec5be683.zip |
Update plugin akismet to 3.2
Diffstat (limited to 'plugins/akismet/akismet.php')
-rw-r--r-- | plugins/akismet/akismet.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/plugins/akismet/akismet.php b/plugins/akismet/akismet.php index a65a0d65..61b41fa4 100644 --- a/plugins/akismet/akismet.php +++ b/plugins/akismet/akismet.php @@ -6,7 +6,7 @@ Plugin Name: Akismet 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: 1) Click the "Activate" link to the left of this description, 2) <a href="https://akismet.com/get/">Sign up for an Akismet plan</a> to get an API key, and 3) Go to your Akismet configuration page, and save your API key. -Version: 3.1.11 +Version: 3.2 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.1.11' ); -define( 'AKISMET__MINIMUM_WP_VERSION', '3.2' ); +define( 'AKISMET_VERSION', '3.2' ); +define( 'AKISMET__MINIMUM_WP_VERSION', '3.7' ); define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'AKISMET_DELETE_LIMIT', 100000 ); @@ -50,7 +50,7 @@ require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' ); add_action( 'init', array( 'Akismet', 'init' ) ); -if ( is_admin() ) { +if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) { require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' ); add_action( 'init', array( 'Akismet_Admin', 'init' ) ); } @@ -58,3 +58,6 @@ if ( is_admin() ) { //add wrapper class around deprecated akismet functions that are referenced elsewhere require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' ); +if ( defined( 'WP_CLI' ) && WP_CLI ) { + require_once( AKISMET__PLUGIN_DIR . 'class.akismet-cli.php' ); +}
\ No newline at end of file |