Plugin Directory

Changeset 1031012


Ignore:
Timestamp:
11/23/2014 04:20:19 AM (11 years ago)
Author:
plocha
Message:

unused code removed

Location:
highfly
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • highfly/branches/2/comment.php

    r1031009 r1031012  
    1616    add_filter( 'comment_notification_recipients',
    1717        array( $this, 'kick_redundant_recipients' ) );
    18     //Recipients may not be able to manage comments. But the default mail
    19     //provides links to edit them. So we create a reduced mail message
     18
    2019    add_filter( pre . 'comment_mail_body', array( $this, 'get_body' ), 10, 2 );
    2120    add_filter( pre . 'comment_mail_subject',
     
    5352}
    5453
    55 /**
    56  * Adds all recipients to the default recipient list. MUST AXE CODE *-*
    57  */
    58 function add_other_comment_recipients( $emails, $comment_id ) {
    59     $comment = get_comment( $comment_id );
    60     $status = get_post_status( $comment->comment_post_ID );
    61     $do = $this->was_published( '', $status );
    62     if ( !apply_filters( pre . 'notify_comment', $do, $comment_id ) ) {
    63         return $emails;
    64     }
    65 
    66     $recipients = $this->get_recipients();
    67     foreach ( $emails as $default_address ) {
    68         if ( !in_array( $default_address, $recipients ) ) {
    69             $recipients[] = $default_address;
    70         }
    71     }
    72     return apply_filters( pre . 'comment_mail_recipients',
    73         $recipients, $comment_id );
    74 }
    75 
    7654function get_body( $body, $comment ) {
    7755    $body = $this->get_comment_line( $comment ) . "\n";
  • highfly/tags/2.0/comment.php

    r1031009 r1031012  
    1616    add_filter( 'comment_notification_recipients',
    1717        array( $this, 'kick_redundant_recipients' ) );
    18     //Recipients may not be able to manage comments. But the default mail
    19     //provides links to edit them. So we create a reduced mail message
     18
    2019    add_filter( pre . 'comment_mail_body', array( $this, 'get_body' ), 10, 2 );
    2120    add_filter( pre . 'comment_mail_subject',
     
    5352}
    5453
    55 /**
    56  * Adds all recipients to the default recipient list. MUST AXE CODE *-*
    57  */
    58 function add_other_comment_recipients( $emails, $comment_id ) {
    59     $comment = get_comment( $comment_id );
    60     $status = get_post_status( $comment->comment_post_ID );
    61     $do = $this->was_published( '', $status );
    62     if ( !apply_filters( pre . 'notify_comment', $do, $comment_id ) ) {
    63         return $emails;
    64     }
    65 
    66     $recipients = $this->get_recipients();
    67     foreach ( $emails as $default_address ) {
    68         if ( !in_array( $default_address, $recipients ) ) {
    69             $recipients[] = $default_address;
    70         }
    71     }
    72     return apply_filters( pre . 'comment_mail_recipients',
    73         $recipients, $comment_id );
    74 }
    75 
    7654function get_body( $body, $comment ) {
    7755    $body = $this->get_comment_line( $comment ) . "\n";
  • highfly/trunk/comment.php

    r1031009 r1031012  
    1616    add_filter( 'comment_notification_recipients',
    1717        array( $this, 'kick_redundant_recipients' ) );
    18     //Recipients may not be able to manage comments. But the default mail
    19     //provides links to edit them. So we create a reduced mail message
     18
    2019    add_filter( pre . 'comment_mail_body', array( $this, 'get_body' ), 10, 2 );
    2120    add_filter( pre . 'comment_mail_subject',
     
    5352}
    5453
    55 /**
    56  * Adds all recipients to the default recipient list. MUST AXE CODE *-*
    57  */
    58 function add_other_comment_recipients( $emails, $comment_id ) {
    59     $comment = get_comment( $comment_id );
    60     $status = get_post_status( $comment->comment_post_ID );
    61     $do = $this->was_published( '', $status );
    62     if ( !apply_filters( pre . 'notify_comment', $do, $comment_id ) ) {
    63         return $emails;
    64     }
    65 
    66     $recipients = $this->get_recipients();
    67     foreach ( $emails as $default_address ) {
    68         if ( !in_array( $default_address, $recipients ) ) {
    69             $recipients[] = $default_address;
    70         }
    71     }
    72     return apply_filters( pre . 'comment_mail_recipients',
    73         $recipients, $comment_id );
    74 }
    75 
    7654function get_body( $body, $comment ) {
    7755    $body = $this->get_comment_line( $comment ) . "\n";
Note: See TracChangeset for help on using the changeset viewer.