Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 

63 rindas
2.3 KiB

  1. <?php
  2. /**
  3. * @package Akismet
  4. */
  5. /*
  6. Plugin Name: Akismet Anti-Spam
  7. Plugin URI: https://akismet.com/
  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
  10. Author: Automattic
  11. Author URI: https://automattic.com/wordpress-plugins/
  12. License: GPLv2 or later
  13. Text Domain: akismet
  14. */
  15. /*
  16. This program is free software; you can redistribute it and/or
  17. modify it under the terms of the GNU General Public License
  18. as published by the Free Software Foundation; either version 2
  19. of the License, or (at your option) any later version.
  20. This program is distributed in the hope that it will be useful,
  21. but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. GNU General Public License for more details.
  24. You should have received a copy of the GNU General Public License
  25. along with this program; if not, write to the Free Software
  26. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  27. Copyright 2005-2015 Automattic, Inc.
  28. */
  29. // Make sure we don't expose any info if called directly
  30. if ( !function_exists( 'add_action' ) ) {
  31. echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';
  32. exit;
  33. }
  34. define( 'AKISMET_VERSION', '3.3' );
  35. define( 'AKISMET__MINIMUM_WP_VERSION', '3.7' );
  36. define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  37. define( 'AKISMET_DELETE_LIMIT', 100000 );
  38. register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );
  39. register_deactivation_hook( __FILE__, array( 'Akismet', 'plugin_deactivation' ) );
  40. require_once( AKISMET__PLUGIN_DIR . 'class.akismet.php' );
  41. require_once( AKISMET__PLUGIN_DIR . 'class.akismet-widget.php' );
  42. add_action( 'init', array( 'Akismet', 'init' ) );
  43. if ( is_admin() || ( defined( 'WP_CLI' ) && WP_CLI ) ) {
  44. require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );
  45. add_action( 'init', array( 'Akismet_Admin', 'init' ) );
  46. }
  47. //add wrapper class around deprecated akismet functions that are referenced elsewhere
  48. require_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );
  49. if ( defined( 'WP_CLI' ) && WP_CLI ) {
  50. require_once( AKISMET__PLUGIN_DIR . 'class.akismet-cli.php' );
  51. }