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