「 プラグイン 」 一覧
-
WordPressを読む 74 /blog/wp-content/plugins/akismet/class.akismet.php
/blog/wp-content/plugins/akismet/class.a …
-
WordPressを読む 73 /blog/wp-content/plugins/akismet/akismet.php
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758<?php/*** @package Akismet*//*Plugin Name: AkismetPlugin URI: http://akismet.com/Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from comment and trackback spam</strong>. It keeps your site protected from spam even while you sleep. To get started: 1) Click the "Activate" link to the left of this description, 2) <a href="http://akismet.com/get/">Sign up for an Akismet API key</a>, and 3) Go to your Akismet configuration page, and save your API key.Version: 3.0.3Author: AutomatticAuthor URI: http://automattic.com/wordpress-plugins/License: GPLv2 or laterText Domain: akismet*//*This program is free software; you can redistribute it and/ormodify it under the terms of the GNU General Public Licenseas published by the Free Software Foundation; either version 2of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program; if not, write to the Free SoftwareFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*/// Make sure we don't expose any info if called directlyif ( !function_exists( 'add_action' ) ) {echo 'Hi there! I\'m just a plugin, not much I can do when called directly.';exit;}define( 'AKISMET_VERSION', '3.0.3' );define( 'AKISMET__MINIMUM_WP_VERSION', '3.1' );define( 'AKISMET__PLUGIN_URL', plugin_dir_url( __FILE__ ) );define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );define( 'AKISMET_DELETE_LIMIT', 100000 );register_activation_hook( __FILE__, array( 'Akismet', 'plugin_activation' ) );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' );add_action( 'init', array( 'Akismet', 'init' ) );if ( is_admin() ) {require_once( AKISMET__PLUGIN_DIR . 'class.akismet-admin.php' );add_action( 'init', array( 'Akismet_Admin', 'init' ) );}//add wrapper class around deprecated akismet functions that are referenced elsewhererequire_once( AKISMET__PLUGIN_DIR . 'wrapper.php' );