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