Changeset 874754
- Timestamp:
- 03/13/2014 02:11:10 PM (10 years ago)
- Location:
- akismet/trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
akismet/trunk/akismet.php
r873075 r874754 56 56 } 57 57 58 59 60 -
akismet/trunk/class.akismet-admin.php
r874208 r874754 287 287 288 288 // WP 2.5+ 289 public function rightnow_stats() {289 public function rightnow_stats() { 290 290 global $submenu, $wp_db_version; 291 291 292 292 if ( 8645 < $wp_db_version ) // 2.7 293 $link = 'edit-comments.php?comment_status=spam';293 $link = ; 294 294 elseif ( isset( $submenu['edit-comments.php'] ) ) 295 $link = 'edit-comments.php?page=akismet-admin';295 $link = ; 296 296 else 297 $link = 'edit.php?page=akismet-admin';297 $link = ; 298 298 299 299 if ( $count = get_option('akismet_spam_count') ) { … … 761 761 } 762 762 763 public function display_page() { 763 public function display_page() { 764 764 if ( !Akismet::get_api_key() || ( isset( $_GET['view'] ) && $_GET['view'] == 'start' ) ) 765 765 $this->display_start_page(); -
akismet/trunk/class.akismet.php
r874212 r874754 123 123 $comment[ 'comment_post_modified_gmt' ] = $post->post_modified_gmt; 124 124 125 $response = $this->http_post( http_build_query( $comment ), 'comment-check' );125 $response = http_post( http_build_query( $comment ), 'comment-check' ); 126 126 127 127 do_action( 'akismet_comment_check_response', $response ); … … 237 237 } 238 238 239 function delete_old_comments() {239 function delete_old_comments() { 240 240 global $wpdb; 241 241 … … 260 260 } 261 261 262 public function delete_old_comments_meta() {262 public function delete_old_comments_meta() { 263 263 global $wpdb; 264 264 … … 335 335 } 336 336 337 public function check_db_comment( $id, $recheck_reason = 'recheck_queue' ) {337 public function check_db_comment( $id, $recheck_reason = 'recheck_queue' ) { 338 338 global $wpdb; 339 339 … … 354 354 $c['is_test'] = 'true'; 355 355 356 $response = $this->http_post( http_build_query( $c ), 'comment-check' );356 $response = http_post( http_build_query( $c ), 'comment-check' ); 357 357 358 358 return ( is_array( $response ) && isset( $response[1] ) ) ? $response[1] : false;
Note: See TracChangeset
for help on using the changeset viewer.