Plugin Directory

Changeset 874754

Timestamp:
03/13/2014 02:11:10 PM (10 years ago)
Author:
eoigal
Message:

add wrapper to akismet classes to expose functions that are referenced elsewhere on wp

Location:
akismet/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/akismet.php

    r873075 r874754  
    5656}
    5757
     58
     59
     60
  • akismet/trunk/class.akismet-admin.php

    r874208 r874754  
    287287   
    288288    // WP 2.5+
    289     public function rightnow_stats() {
     289    public function rightnow_stats() {
    290290        global $submenu, $wp_db_version;
    291291   
    292292        if ( 8645 < $wp_db_version  ) // 2.7
    293             $link = 'edit-comments.php?comment_status=spam';
     293            $link = ;
    294294        elseif ( isset( $submenu['edit-comments.php'] ) )
    295             $link = 'edit-comments.php?page=akismet-admin';
     295            $link = ;
    296296        else
    297             $link = 'edit.php?page=akismet-admin';
     297            $link = ;
    298298   
    299299        if ( $count = get_option('akismet_spam_count') ) {
     
    761761    }
    762762
    763     public function display_page() {               
     763    public function display_page() {
    764764        if ( !Akismet::get_api_key() || ( isset( $_GET['view'] ) && $_GET['view'] == 'start' ) )
    765765            $this->display_start_page();
  • akismet/trunk/class.akismet.php

    r874212 r874754  
    123123        $comment[ 'comment_post_modified_gmt' ] = $post->post_modified_gmt;
    124124   
    125         $response = $this->http_post( http_build_query( $comment ), 'comment-check' );
     125        $response = http_post( http_build_query( $comment ), 'comment-check' );
    126126       
    127127        do_action( 'akismet_comment_check_response', $response );
     
    237237    }
    238238   
    239     function delete_old_comments() {
     239    function delete_old_comments() {
    240240        global $wpdb;
    241241       
     
    260260    }
    261261
    262     public function delete_old_comments_meta() {
     262    public function delete_old_comments_meta() {
    263263        global $wpdb;
    264264   
     
    335335    }
    336336   
    337     public function check_db_comment( $id, $recheck_reason = 'recheck_queue' ) {
     337    public function check_db_comment( $id, $recheck_reason = 'recheck_queue' ) {
    338338        global $wpdb;
    339339   
     
    354354            $c['is_test'] = 'true';
    355355   
    356         $response = $this->http_post( http_build_query( $c ), 'comment-check' );
     356        $response = http_post( http_build_query( $c ), 'comment-check' );
    357357       
    358358        return ( is_array( $response ) && isset( $response[1] ) ) ? $response[1] : false;
Note: See TracChangeset for help on using the changeset viewer.