Plugin Directory

Changeset 509735


Ignore:
Timestamp:
02/24/2012 10:37:29 AM (14 years ago)
Author:
.fay
Message:

v2.4

  • Excluding post owner from notification
Location:
wp-post-notifier-for-all/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-post-notifier-for-all/trunk/readme.txt

    r466452 r509735  
    55Tags: notify, post, notifier
    66Requires at least: 3.0
    7 Tested up to: 3.2.1
    8 Stable tag: 2.3
     7Tested up to: 3.3.1
     8Stable tag: 2.4
    99
    1010Notify all Wordpress users (and not only the admin) on post publishing.
     
    2626
    2727== Changelog ==
     28= 2.4 =
     29* Excluding post owner from notification
     30
    2831= 2.3 =
    2932* Adding [CATEGORIES] in email body template
  • wp-post-notifier-for-all/trunk/wp-post-notifier-for-all.php

    r461512 r509735  
    44Plugin URI: http://faycaltirich.blogspot.com/1979/01/wp-post-notifier-for-all.html
    55Description: Notify all Wordpress users (and not only the admin) on post publishing. The notification is sent only one time after the first post publishing(not on every update).
    6 Version: 2.3
     6Version: 2.4
    77Author: Fayçal Tirich
    88Author URI: http://faycaltirich.blogspot.com
     
    7777        }
    7878    }
     79   
    7980    if ($process==1){
    8081        //only notify for new posts
     
    9495
    9596        $author = get_the_author_meta('display_name',$post->post_author);
     97        $author_email = get_the_author_meta('user_email',$post->post_author);
    9698
    9799        $email_pnfa_subject = str_replace('[AUTHOR]', htmlspecialchars_decode($author), $pnfa_subject);
     
    132134        add_filter('wp_mail_charset', 'pnfa_get_mail_charset');
    133135        foreach ( $emails as $email ){
     136            if( $email == $author_email ){
     137                continue ;
     138            }
    134139            @wp_mail($email, $email_pnfa_subject, $message, $message_headers );
    135140        }
Note: See TracChangeset for help on using the changeset viewer.