Edit File by line
/home/barbar84/www/wp-conte.../plugins/akismet_...
File: wrapper.php
<?php
[0] Fix | Delete
[1] Fix | Delete
global $wpcom_api_key, $akismet_api_host, $akismet_api_port;
[2] Fix | Delete
[3] Fix | Delete
$wpcom_api_key = defined( 'WPCOM_API_KEY' ) ? constant( 'WPCOM_API_KEY' ) : '';
[4] Fix | Delete
$akismet_api_host = Akismet::get_api_key() . '.rest.akismet.com';
[5] Fix | Delete
$akismet_api_port = 80;
[6] Fix | Delete
[7] Fix | Delete
function akismet_test_mode() {
[8] Fix | Delete
return Akismet::is_test_mode();
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
function akismet_http_post( $request, $host, $path, $port = 80, $ip = null ) {
[12] Fix | Delete
$path = str_replace( '/1.1/', '', $path );
[13] Fix | Delete
[14] Fix | Delete
return Akismet::http_post( $request, $path, $ip );
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
function akismet_microtime() {
[18] Fix | Delete
return Akismet::_get_microtime();
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
function akismet_delete_old() {
[22] Fix | Delete
return Akismet::delete_old_comments();
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
function akismet_delete_old_metadata() {
[26] Fix | Delete
return Akismet::delete_old_comments_meta();
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
function akismet_check_db_comment( $id, $recheck_reason = 'recheck_queue' ) {
[30] Fix | Delete
return Akismet::check_db_comment( $id, $recheck_reason );
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
function akismet_rightnow() {
[34] Fix | Delete
if ( !class_exists( 'Akismet_Admin' ) )
[35] Fix | Delete
return false;
[36] Fix | Delete
[37] Fix | Delete
return Akismet_Admin::rightnow_stats();
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
function akismet_admin_init() {
[41] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[42] Fix | Delete
}
[43] Fix | Delete
function akismet_version_warning() {
[44] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[45] Fix | Delete
}
[46] Fix | Delete
function akismet_load_js_and_css() {
[47] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[48] Fix | Delete
}
[49] Fix | Delete
function akismet_nonce_field( $action = -1 ) {
[50] Fix | Delete
return wp_nonce_field( $action );
[51] Fix | Delete
}
[52] Fix | Delete
function akismet_plugin_action_links( $links, $file ) {
[53] Fix | Delete
return Akismet_Admin::plugin_action_links( $links, $file );
[54] Fix | Delete
}
[55] Fix | Delete
function akismet_conf() {
[56] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[57] Fix | Delete
}
[58] Fix | Delete
function akismet_stats_display() {
[59] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[60] Fix | Delete
}
[61] Fix | Delete
function akismet_stats() {
[62] Fix | Delete
return Akismet_Admin::dashboard_stats();
[63] Fix | Delete
}
[64] Fix | Delete
function akismet_admin_warnings() {
[65] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[66] Fix | Delete
}
[67] Fix | Delete
function akismet_comment_row_action( $a, $comment ) {
[68] Fix | Delete
return Akismet_Admin::comment_row_actions( $a, $comment );
[69] Fix | Delete
}
[70] Fix | Delete
function akismet_comment_status_meta_box( $comment ) {
[71] Fix | Delete
return Akismet_Admin::comment_status_meta_box( $comment );
[72] Fix | Delete
}
[73] Fix | Delete
function akismet_comments_columns( $columns ) {
[74] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[75] Fix | Delete
[76] Fix | Delete
return $columns;
[77] Fix | Delete
}
[78] Fix | Delete
function akismet_comment_column_row( $column, $comment_id ) {
[79] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[80] Fix | Delete
}
[81] Fix | Delete
function akismet_text_add_link_callback( $m ) {
[82] Fix | Delete
return Akismet_Admin::text_add_link_callback( $m );
[83] Fix | Delete
}
[84] Fix | Delete
function akismet_text_add_link_class( $comment_text ) {
[85] Fix | Delete
return Akismet_Admin::text_add_link_class( $comment_text );
[86] Fix | Delete
}
[87] Fix | Delete
function akismet_check_for_spam_button( $comment_status ) {
[88] Fix | Delete
return Akismet_Admin::check_for_spam_button( $comment_status );
[89] Fix | Delete
}
[90] Fix | Delete
function akismet_submit_nonspam_comment( $comment_id ) {
[91] Fix | Delete
return Akismet::submit_nonspam_comment( $comment_id );
[92] Fix | Delete
}
[93] Fix | Delete
function akismet_submit_spam_comment( $comment_id ) {
[94] Fix | Delete
return Akismet::submit_spam_comment( $comment_id );
[95] Fix | Delete
}
[96] Fix | Delete
function akismet_transition_comment_status( $new_status, $old_status, $comment ) {
[97] Fix | Delete
return Akismet::transition_comment_status( $new_status, $old_status, $comment );
[98] Fix | Delete
}
[99] Fix | Delete
function akismet_spam_count( $type = false ) {
[100] Fix | Delete
return Akismet_Admin::get_spam_count( $type );
[101] Fix | Delete
}
[102] Fix | Delete
function akismet_recheck_queue() {
[103] Fix | Delete
return Akismet_Admin::recheck_queue();
[104] Fix | Delete
}
[105] Fix | Delete
function akismet_remove_comment_author_url() {
[106] Fix | Delete
return Akismet_Admin::remove_comment_author_url();
[107] Fix | Delete
}
[108] Fix | Delete
function akismet_add_comment_author_url() {
[109] Fix | Delete
return Akismet_Admin::add_comment_author_url();
[110] Fix | Delete
}
[111] Fix | Delete
function akismet_check_server_connectivity() {
[112] Fix | Delete
return Akismet_Admin::check_server_connectivity();
[113] Fix | Delete
}
[114] Fix | Delete
function akismet_get_server_connectivity( $cache_timeout = 86400 ) {
[115] Fix | Delete
return Akismet_Admin::get_server_connectivity( $cache_timeout );
[116] Fix | Delete
}
[117] Fix | Delete
function akismet_server_connectivity_ok() {
[118] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[119] Fix | Delete
[120] Fix | Delete
return true;
[121] Fix | Delete
}
[122] Fix | Delete
function akismet_admin_menu() {
[123] Fix | Delete
return Akismet_Admin::admin_menu();
[124] Fix | Delete
}
[125] Fix | Delete
function akismet_load_menu() {
[126] Fix | Delete
return Akismet_Admin::load_menu();
[127] Fix | Delete
}
[128] Fix | Delete
function akismet_init() {
[129] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[130] Fix | Delete
}
[131] Fix | Delete
function akismet_get_key() {
[132] Fix | Delete
return Akismet::get_api_key();
[133] Fix | Delete
}
[134] Fix | Delete
function akismet_check_key_status( $key, $ip = null ) {
[135] Fix | Delete
return Akismet::check_key_status( $key, $ip );
[136] Fix | Delete
}
[137] Fix | Delete
function akismet_update_alert( $response ) {
[138] Fix | Delete
return Akismet::update_alert( $response );
[139] Fix | Delete
}
[140] Fix | Delete
function akismet_verify_key( $key, $ip = null ) {
[141] Fix | Delete
return Akismet::verify_key( $key, $ip );
[142] Fix | Delete
}
[143] Fix | Delete
function akismet_get_user_roles( $user_id ) {
[144] Fix | Delete
return Akismet::get_user_roles( $user_id );
[145] Fix | Delete
}
[146] Fix | Delete
function akismet_result_spam( $approved ) {
[147] Fix | Delete
return Akismet::comment_is_spam( $approved );
[148] Fix | Delete
}
[149] Fix | Delete
function akismet_result_hold( $approved ) {
[150] Fix | Delete
return Akismet::comment_needs_moderation( $approved );
[151] Fix | Delete
}
[152] Fix | Delete
function akismet_get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url ) {
[153] Fix | Delete
return Akismet::get_user_comments_approved( $user_id, $comment_author_email, $comment_author, $comment_author_url );
[154] Fix | Delete
}
[155] Fix | Delete
function akismet_update_comment_history( $comment_id, $message, $event = null ) {
[156] Fix | Delete
return Akismet::update_comment_history( $comment_id, $message, $event );
[157] Fix | Delete
}
[158] Fix | Delete
function akismet_get_comment_history( $comment_id ) {
[159] Fix | Delete
return Akismet::get_comment_history( $comment_id );
[160] Fix | Delete
}
[161] Fix | Delete
function akismet_cmp_time( $a, $b ) {
[162] Fix | Delete
return Akismet::_cmp_time( $a, $b );
[163] Fix | Delete
}
[164] Fix | Delete
function akismet_auto_check_update_meta( $id, $comment ) {
[165] Fix | Delete
return Akismet::auto_check_update_meta( $id, $comment );
[166] Fix | Delete
}
[167] Fix | Delete
function akismet_auto_check_comment( $commentdata ) {
[168] Fix | Delete
return Akismet::auto_check_comment( $commentdata );
[169] Fix | Delete
}
[170] Fix | Delete
function akismet_get_ip_address() {
[171] Fix | Delete
return Akismet::get_ip_address();
[172] Fix | Delete
}
[173] Fix | Delete
function akismet_cron_recheck() {
[174] Fix | Delete
return Akismet::cron_recheck();
[175] Fix | Delete
}
[176] Fix | Delete
function akismet_add_comment_nonce( $post_id ) {
[177] Fix | Delete
return Akismet::add_comment_nonce( $post_id );
[178] Fix | Delete
}
[179] Fix | Delete
function akismet_fix_scheduled_recheck() {
[180] Fix | Delete
return Akismet::fix_scheduled_recheck();
[181] Fix | Delete
}
[182] Fix | Delete
function akismet_spam_comments() {
[183] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[184] Fix | Delete
[185] Fix | Delete
return array();
[186] Fix | Delete
}
[187] Fix | Delete
function akismet_spam_totals() {
[188] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[189] Fix | Delete
[190] Fix | Delete
return array();
[191] Fix | Delete
}
[192] Fix | Delete
function akismet_manage_page() {
[193] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[194] Fix | Delete
}
[195] Fix | Delete
function akismet_caught() {
[196] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[197] Fix | Delete
}
[198] Fix | Delete
function redirect_old_akismet_urls() {
[199] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[200] Fix | Delete
}
[201] Fix | Delete
function akismet_kill_proxy_check( $option ) {
[202] Fix | Delete
_deprecated_function( __FUNCTION__, '3.0' );
[203] Fix | Delete
[204] Fix | Delete
return 0;
[205] Fix | Delete
}
[206] Fix | Delete
function akismet_pingback_forwarded_for( $r, $url ) {
[207] Fix | Delete
// This functionality is now in core.
[208] Fix | Delete
return false;
[209] Fix | Delete
}
[210] Fix | Delete
function akismet_pre_check_pingback( $method ) {
[211] Fix | Delete
return Akismet::pre_check_pingback( $method );
[212] Fix | Delete
}
[213] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function