~canonical-sysadmins/wordpress/4.9.7

« back to all changes in this revision

Viewing changes to wp-content/plugins/akismet/akismet.php

  • Committer: Barry Price
  • Date: 2017-11-02 04:15:21 UTC
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: barry.price@canonical.com-20171102041521-ndw2qbwzffjd42hv
new upstream release 4.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
Plugin Name: Akismet Anti-Spam
7
7
Plugin URI: https://akismet.com/
8
8
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.
9
 
Version: 3.3.4
 
9
Version: 4.0
10
10
Author: Automattic
11
11
Author URI: https://automattic.com/wordpress-plugins/
12
12
License: GPLv2 or later
37
37
        exit;
38
38
}
39
39
 
40
 
define( 'AKISMET_VERSION', '3.3.4' );
41
 
define( 'AKISMET__MINIMUM_WP_VERSION', '3.7' );
 
40
define( 'AKISMET_VERSION', '4.0' );
 
41
define( 'AKISMET__MINIMUM_WP_VERSION', '4.0' );
42
42
define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
43
43
define( 'AKISMET_DELETE_LIMIT', 100000 );
44
44
 
47
47
 
48
48
require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' );
49
49
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' );
 
50
require_once( AKISMET__PLUGIN_DIR . 'class.akismet-rest-api.php' );
50
51
 
51
52
add_action( 'init', array( 'Akismet', 'init' ) );
52
53
 
 
54
add_action( 'rest_api_init', array( 'Akismet_REST_API', 'init' ) );
 
55
 
53
56
if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
54
57
        require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );
55
58
        add_action( 'init', array( 'Akismet_Admin', 'init' ) );