WordPress.org

Plugin Directory

Changeset 1159940


Ignore:
Timestamp:
05/13/15 22:00:18 (2 years ago)
Author:
scweber
Message:

Fixed a bug with the moderation recipients list

Location:
custom-comment-notifications
Files:
2 edited
7 copied

Legend:

Unmodified
Added
Removed
  • custom-comment-notifications/tags/1.0.8/custom-comment-notifications.php

    r1159751 r1159940  
    33 * 
    44 * @package Custom_Comment_Notifications 
    5  * @version 1.0.7 
     5 * @version 1.0.8 
    66 */ 
    77/* 
     
    1010  Description: This plugin allows for the comment e-mail notifications that are sent to the comment moderator as well as the post author to be completely customized. 
    1111  Author: Scott Weber 
    12   Version: 1.0.7 
     12  Version: 1.0.8 
    1313  Author URI: https://github.com/scweber 
    1414 */ 
     
    234234                <tr valign="top"><th><?php _e('Subject:', 'custom-comment-notifications'); ?></th><td><input type="text" id="ccn-editor-subject" size="90"></input></td></tr> 
    235235                <tr valign="top"><th><?php _e('Content:', 'custom-comment-notifications'); ?></th><td><textarea rows="20" cols="90" id="ccn-editor-content"></textarea></td></tr> 
     236                                </table> 
     237                            </div> 
     238                            <div id="ccn-save-container"> 
     239                                <table id="ccn-save-table"> 
     240                                    <tr valign="top"><td><input type="submit" name="ccn_save" class="button-primary" value="<?php _e('Save Changes', 'custom-comment-notifications'); ?>" /></td></tr> 
     241                                </table>      
     242                            </div> 
     243                        </form> 
     244                        <div id="ccn-variables-container"> 
     245                            <hr/><h3><?php _e('Post Variables', 'custom-comment-notifications'); ?></h3><hr/> 
     246                            <table id="ccn-post-variables-table" class="form-table"> 
     247                                <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
     248                                <tr><td id="ccn-variable"><?php _e('P_ID', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('ID of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     249                                <tr><td id="ccn-variable"><?php _e('P_AUTHOR', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Author of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     250                                <tr><td id="ccn-variable"><?php _e('P_TITLE', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Title of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     251                                <tr><td id="ccn-variable"><?php _e('P_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     252                                <tr><td id="ccn-variable"><?php _e('P_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     253                                <tr><td id="ccn-variable"><?php _e('P_LINK_COMMENT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to post that was commented on (navigate to current comment)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     254                                <tr><td id="ccn-variable"><?php _e('P_LINK_COMMENTS', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to the post that was commented on (navigate to comments section)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     255                                <tr><td id="ccn-variable"><?php _e('P_CATEGORY', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('First category assigned to the post', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    236256                            </table> 
     257                            <hr/><h3><?php _e('Comment Variables', 'custom-comment-notifications'); ?></h3><hr/> 
     258                            <table id="ccn-comment-variables-table" class="form-table"> 
     259                                <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
     260                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Name of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     261                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_EMAIL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Email of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Mail Link', 'custom-comment-notifications'); ?></td></tr> 
     262                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('IP of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     263                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_DOMAIN', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Domain lookup of comment author\'s IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     264                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     265                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_ARIN_LOOKUP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><a href="https://www.arin.net/"><?php _e('ARIN Whois', 'custom-comment-notifications'); ?></a><?php _e(' lookup of comment author\'s IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     266                                <tr><td id="ccn-variable"><?php _e('C_CONTENT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Content of the comment', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     267                                <tr><td id="ccn-variable"><?php _e('C_EXCERPT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Excerpt of the comment', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     268                                <tr><td id="ccn-variable"><?php _e('C_WAITING_MODERATION', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Number of comments waiting moderation (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Integer', 'custom-comment-notifications'); ?></td></tr> 
     269                            </table> 
     270                            <hr/><h3><?php _e('Moderation Variables', 'custom-comment-notifications'); ?></h3><hr/> 
     271                            <table id="ccn-moderation-variables-table" class="form-table"> 
     272                                <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
     273                                <tr><td id="ccn-variable"><?php _e('DELETE_TRASH_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to trash or delete Comment (depends on ', 'custom-comment-notifications'); ?><a href=https://codex.wordpress.org/Trash_status><?php _e('EMPTY_TRASH_DAYS', 'custom-comment-notifications'); ?></a><?php _e(' variable)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     274                                <tr><td id="ccn-variable"><?php _e('APPROVE_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to approve comment (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     275                                <tr><td id="ccn-variable"><?php _e('SPAM_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to mark comment as spam', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     276                                <tr><td id="ccn-variable"><?php _e('MODERATION_PANEL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Moderation Panel (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     277                                 <tr><td id="ccn-variable"><?php _e('DELETE_TRASH_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to trash or delete Comment (depends on ', 'custom-comment-notifications'); ?><a href=https://codex.wordpress.org/Trash_status><?php _e('EMPTY_TRASH_DAYS', 'custom-comment-notifications'); ?></a><?php _e(' variable)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     278                                <tr><td id="ccn-variable"><?php _e('APPROVE_COMMENT_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to approve comment (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     279                                <tr><td id="ccn-variable"><?php _e('SPAM_COMMENT_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to mark comment as spam', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     280                                <tr><td id="ccn-variable"><?php _e('MODERATION_PANEL_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to Moderation Panel (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     281                            </table> 
     282                            <hr/><h3><?php _e('Site Variables', 'custom-comment-notifications'); ?></h3><hr/> 
     283                            <table id="ccn-moderation-variables-table" class="form-table"> 
     284                                <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
     285                                <tr><td id="ccn-variable"><?php _e('SITE_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Site', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     286                                <tr><td id="ccn-variable"><?php _e('SITE_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Site', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     287                                <tr><td id="ccn-variable"><?php _e('BLOG_NAME', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Blog Name', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     288                            </table> 
     289                            <span><?php _e('**If Plain Text Email format selection is chosen, then anchor tags will be split out and the URL will immediately follow the corresponding text.', 'custom-comment-notifications'); ?></span> 
    237290                        </div> 
    238                         <div id="ccn-save-container"> 
    239                             <table id="ccn-save-table"> 
    240                                 <tr valign="top"><td><input type="submit" name="ccn_save" class="button-primary" value="<?php _e('Save Changes', 'custom-comment-notifications'); ?>" /></td></tr> 
    241                             </table>      
    242                         </div> 
    243                     </form> 
    244                     <div id="ccn-variables-container"> 
    245                         <hr/><h3><?php _e('Post Variables', 'custom-comment-notifications'); ?></h3><hr/> 
    246                         <table id="ccn-post-variables-table" class="form-table"> 
    247                             <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
    248                             <tr><td id="ccn-variable"><?php _e('P_ID', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('ID of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    249                             <tr><td id="ccn-variable"><?php _e('P_AUTHOR', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Author of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    250                             <tr><td id="ccn-variable"><?php _e('P_TITLE', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Title of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    251                             <tr><td id="ccn-variable"><?php _e('P_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    252                             <tr><td id="ccn-variable"><?php _e('P_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    253                             <tr><td id="ccn-variable"><?php _e('P_LINK_COMMENT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to post that was commented on (navigate to current comment)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    254                             <tr><td id="ccn-variable"><?php _e('P_LINK_COMMENTS', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to the post that was commented on (navigate to comments section)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    255                             <tr><td id="ccn-variable"><?php _e('P_CATEGORY', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('First category assigned to the post', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    256                         </table> 
    257                         <hr/><h3><?php _e('Comment Variables', 'custom-comment-notifications'); ?></h3><hr/> 
    258                         <table id="ccn-comment-variables-table" class="form-table"> 
    259                             <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
    260                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Name of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    261                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_EMAIL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Email of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Mail Link', 'custom-comment-notifications'); ?></td></tr> 
    262                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('IP of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    263                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_DOMAIN', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Domain lookup of comment author\'s IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    264                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    265                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_ARIN_LOOKUP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><a href="https://www.arin.net/"><?php _e('ARIN Whois', 'custom-comment-notifications'); ?></a><?php _e(' lookup of comment author\'s IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    266                             <tr><td id="ccn-variable"><?php _e('C_CONTENT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Content of the comment', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    267                             <tr><td id="ccn-variable"><?php _e('C_EXCERPT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Excerpt of the comment', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    268                             <tr><td id="ccn-variable"><?php _e('C_WAITING_MODERATION', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Number of comments waiting moderation (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Integer', 'custom-comment-notifications'); ?></td></tr> 
    269                         </table> 
    270                         <hr/><h3><?php _e('Moderation Variables', 'custom-comment-notifications'); ?></h3><hr/> 
    271                         <table id="ccn-moderation-variables-table" class="form-table"> 
    272                             <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
    273                             <tr><td id="ccn-variable"><?php _e('DELETE_TRASH_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to trash or delete Comment (depends on ', 'custom-comment-notifications'); ?><a href=https://codex.wordpress.org/Trash_status><?php _e('EMPTY_TRASH_DAYS', 'custom-comment-notifications'); ?></a><?php _e(' variable)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    274                             <tr><td id="ccn-variable"><?php _e('APPROVE_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to approve comment (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    275                             <tr><td id="ccn-variable"><?php _e('SPAM_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to mark comment as spam', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    276                             <tr><td id="ccn-variable"><?php _e('MODERATION_PANEL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Moderation Panel (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    277                              <tr><td id="ccn-variable"><?php _e('DELETE_TRASH_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to trash or delete Comment (depends on ', 'custom-comment-notifications'); ?><a href=https://codex.wordpress.org/Trash_status><?php _e('EMPTY_TRASH_DAYS', 'custom-comment-notifications'); ?></a><?php _e(' variable)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    278                             <tr><td id="ccn-variable"><?php _e('APPROVE_COMMENT_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to approve comment (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    279                             <tr><td id="ccn-variable"><?php _e('SPAM_COMMENT_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to mark comment as spam', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    280                             <tr><td id="ccn-variable"><?php _e('MODERATION_PANEL_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to Moderation Panel (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    281                         </table> 
    282                         <hr/><h3><?php _e('Site Variables', 'custom-comment-notifications'); ?></h3><hr/> 
    283                         <table id="ccn-moderation-variables-table" class="form-table"> 
    284                             <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
    285                             <tr><td id="ccn-variable"><?php _e('SITE_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Site', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    286                             <tr><td id="ccn-variable"><?php _e('SITE_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Site', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    287                             <tr><td id="ccn-variable"><?php _e('BLOG_NAME', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Blog Name', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    288                         </table> 
    289                         <span><?php _e('**If Plain Text Email format selection is chosen, then anchor tags will be split out and the URL will immediately follow the corresponding text.', 'custom-comment-notifications'); ?></span> 
    290                     </div> 
    291                      
     291                         
    292292    <?php 
    293293} 
     
    452452function ccn_javascript() { 
    453453    ?> 
    454                     <script type='text/javascript'> 
     454                        <script type='text/javascript'> 
    455455        jQuery(document).ready(function ($) { 
    456456            $('#ccn-template').change(function () { 
     
    770770        $postAuthor = get_userdata($post->post_author); 
    771771 
    772         // Send to the administration and to the post author if the author can modify the comment. 
     772        // Send to the administration and to the post author if the author can modify the comment.    
    773773        $recipients = array(get_option('admin_email')); 
    774         $custom_recipients = split(', ', $moderator_recipients); 
    775         $recipients = array_map('trim', explode(',', $custom_recipients)); 
     774        $custom_recipients = array_map('trim', explode(',', $moderator_recipients)); 
     775        $recipients = array_merge($recipients, $custom_recipients); 
    776776        if($allow_author_moderation && user_can($postAuthor->ID, 'edit_comment', $comment_id) && !empty($postAuthor->user_email)) { 
    777777            if(0 !== strcasecmp($postAuthor->user_email, get_option('admin_email'))) { 
  • custom-comment-notifications/tags/1.0.8/readme.txt

    r1159751 r1159940  
    44Requires at least: 3.0 
    55Tested up to: 4.2.2 
    6 Stable tag: 1.0.7 
     6Stable tag: 1.0.8 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1919* **Post Variables** 
    2020  * Post ID 
    21   * Post Author 
    2221  * Post Title 
    2322  * Post Link 
     23  * Post Link URL 
    2424  * Post Link to Specific Comment 
    2525  * Post Link to Comments Section 
     
    3737* **Moderation Variables** 
    3838  * Delete/Trash Comment (Depends on EMPTY_TRASH_DAYS variable) 
     39  * Delete/Trash Comment URL (Depends on EMPTY_TRASH_DAYS variable) 
    3940  * Approve Comment (Moderator Templates Only) 
     41  * Approve Comment URL (Moderator Templates Only) 
    4042  * Spam Comment 
     43  * Spam Comment URL  
    4144  * Moderation Panel Link (Moderator Templates Only) 
     45  * Moderation Panel Link URL (Moderator Templates Only) 
    4246 
    4347* **Site Variables** 
    4448  * Site Link 
     49  * Site Link URL 
    4550  * Blog Name 
    4651 
     
    7479 
    7580== Changelog == 
     81= 1.0.8 = 
     82* **Bug Fixes** 
     83  * An error when building the recipient lists for moderation emails (thanks WSP-webmaster) 
     84 
    7685= 1.0.7 = 
    7786* **Enhancements** 
    7887  * URLs added as additional variables to the Links 
     88 
    7989 
    8090= 1.0.6 =  
     
    90100 
    91101= 1.0.4 = 
    92 * **Enhancments** 
     102* **Enhancements** 
    93103  * Allow Post Author to be excluded from or included in moderation e-mails. 
    94104 
  • custom-comment-notifications/trunk/custom-comment-notifications.php

    r1159751 r1159940  
    33 * 
    44 * @package Custom_Comment_Notifications 
    5  * @version 1.0.7 
     5 * @version 1.0.8 
    66 */ 
    77/* 
     
    1010  Description: This plugin allows for the comment e-mail notifications that are sent to the comment moderator as well as the post author to be completely customized. 
    1111  Author: Scott Weber 
    12   Version: 1.0.7 
     12  Version: 1.0.8 
    1313  Author URI: https://github.com/scweber 
    1414 */ 
     
    234234                <tr valign="top"><th><?php _e('Subject:', 'custom-comment-notifications'); ?></th><td><input type="text" id="ccn-editor-subject" size="90"></input></td></tr> 
    235235                <tr valign="top"><th><?php _e('Content:', 'custom-comment-notifications'); ?></th><td><textarea rows="20" cols="90" id="ccn-editor-content"></textarea></td></tr> 
     236                                </table> 
     237                            </div> 
     238                            <div id="ccn-save-container"> 
     239                                <table id="ccn-save-table"> 
     240                                    <tr valign="top"><td><input type="submit" name="ccn_save" class="button-primary" value="<?php _e('Save Changes', 'custom-comment-notifications'); ?>" /></td></tr> 
     241                                </table>      
     242                            </div> 
     243                        </form> 
     244                        <div id="ccn-variables-container"> 
     245                            <hr/><h3><?php _e('Post Variables', 'custom-comment-notifications'); ?></h3><hr/> 
     246                            <table id="ccn-post-variables-table" class="form-table"> 
     247                                <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
     248                                <tr><td id="ccn-variable"><?php _e('P_ID', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('ID of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     249                                <tr><td id="ccn-variable"><?php _e('P_AUTHOR', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Author of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     250                                <tr><td id="ccn-variable"><?php _e('P_TITLE', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Title of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     251                                <tr><td id="ccn-variable"><?php _e('P_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     252                                <tr><td id="ccn-variable"><?php _e('P_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     253                                <tr><td id="ccn-variable"><?php _e('P_LINK_COMMENT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to post that was commented on (navigate to current comment)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     254                                <tr><td id="ccn-variable"><?php _e('P_LINK_COMMENTS', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to the post that was commented on (navigate to comments section)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     255                                <tr><td id="ccn-variable"><?php _e('P_CATEGORY', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('First category assigned to the post', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    236256                            </table> 
     257                            <hr/><h3><?php _e('Comment Variables', 'custom-comment-notifications'); ?></h3><hr/> 
     258                            <table id="ccn-comment-variables-table" class="form-table"> 
     259                                <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
     260                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Name of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     261                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_EMAIL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Email of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Mail Link', 'custom-comment-notifications'); ?></td></tr> 
     262                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('IP of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     263                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_DOMAIN', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Domain lookup of comment author\'s IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     264                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     265                                <tr><td id="ccn-variable"><?php _e('C_AUTHOR_ARIN_LOOKUP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><a href="https://www.arin.net/"><?php _e('ARIN Whois', 'custom-comment-notifications'); ?></a><?php _e(' lookup of comment author\'s IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     266                                <tr><td id="ccn-variable"><?php _e('C_CONTENT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Content of the comment', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     267                                <tr><td id="ccn-variable"><?php _e('C_EXCERPT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Excerpt of the comment', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     268                                <tr><td id="ccn-variable"><?php _e('C_WAITING_MODERATION', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Number of comments waiting moderation (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Integer', 'custom-comment-notifications'); ?></td></tr> 
     269                            </table> 
     270                            <hr/><h3><?php _e('Moderation Variables', 'custom-comment-notifications'); ?></h3><hr/> 
     271                            <table id="ccn-moderation-variables-table" class="form-table"> 
     272                                <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
     273                                <tr><td id="ccn-variable"><?php _e('DELETE_TRASH_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to trash or delete Comment (depends on ', 'custom-comment-notifications'); ?><a href=https://codex.wordpress.org/Trash_status><?php _e('EMPTY_TRASH_DAYS', 'custom-comment-notifications'); ?></a><?php _e(' variable)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     274                                <tr><td id="ccn-variable"><?php _e('APPROVE_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to approve comment (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     275                                <tr><td id="ccn-variable"><?php _e('SPAM_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to mark comment as spam', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     276                                <tr><td id="ccn-variable"><?php _e('MODERATION_PANEL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Moderation Panel (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     277                                 <tr><td id="ccn-variable"><?php _e('DELETE_TRASH_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to trash or delete Comment (depends on ', 'custom-comment-notifications'); ?><a href=https://codex.wordpress.org/Trash_status><?php _e('EMPTY_TRASH_DAYS', 'custom-comment-notifications'); ?></a><?php _e(' variable)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     278                                <tr><td id="ccn-variable"><?php _e('APPROVE_COMMENT_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to approve comment (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     279                                <tr><td id="ccn-variable"><?php _e('SPAM_COMMENT_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to mark comment as spam', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     280                                <tr><td id="ccn-variable"><?php _e('MODERATION_PANEL_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to Moderation Panel (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     281                            </table> 
     282                            <hr/><h3><?php _e('Site Variables', 'custom-comment-notifications'); ?></h3><hr/> 
     283                            <table id="ccn-moderation-variables-table" class="form-table"> 
     284                                <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
     285                                <tr><td id="ccn-variable"><?php _e('SITE_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Site', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
     286                                <tr><td id="ccn-variable"><?php _e('SITE_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Site', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     287                                <tr><td id="ccn-variable"><?php _e('BLOG_NAME', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Blog Name', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
     288                            </table> 
     289                            <span><?php _e('**If Plain Text Email format selection is chosen, then anchor tags will be split out and the URL will immediately follow the corresponding text.', 'custom-comment-notifications'); ?></span> 
    237290                        </div> 
    238                         <div id="ccn-save-container"> 
    239                             <table id="ccn-save-table"> 
    240                                 <tr valign="top"><td><input type="submit" name="ccn_save" class="button-primary" value="<?php _e('Save Changes', 'custom-comment-notifications'); ?>" /></td></tr> 
    241                             </table>      
    242                         </div> 
    243                     </form> 
    244                     <div id="ccn-variables-container"> 
    245                         <hr/><h3><?php _e('Post Variables', 'custom-comment-notifications'); ?></h3><hr/> 
    246                         <table id="ccn-post-variables-table" class="form-table"> 
    247                             <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
    248                             <tr><td id="ccn-variable"><?php _e('P_ID', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('ID of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    249                             <tr><td id="ccn-variable"><?php _e('P_AUTHOR', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Author of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    250                             <tr><td id="ccn-variable"><?php _e('P_TITLE', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Title of post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    251                             <tr><td id="ccn-variable"><?php _e('P_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    252                             <tr><td id="ccn-variable"><?php _e('P_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to post that was commented on', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    253                             <tr><td id="ccn-variable"><?php _e('P_LINK_COMMENT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to post that was commented on (navigate to current comment)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    254                             <tr><td id="ccn-variable"><?php _e('P_LINK_COMMENTS', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to the post that was commented on (navigate to comments section)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    255                             <tr><td id="ccn-variable"><?php _e('P_CATEGORY', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('First category assigned to the post', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    256                         </table> 
    257                         <hr/><h3><?php _e('Comment Variables', 'custom-comment-notifications'); ?></h3><hr/> 
    258                         <table id="ccn-comment-variables-table" class="form-table"> 
    259                             <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
    260                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Name of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    261                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_EMAIL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Email of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Mail Link', 'custom-comment-notifications'); ?></td></tr> 
    262                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('IP of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    263                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_DOMAIN', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Domain lookup of comment author\'s IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    264                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL of comment author', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    265                             <tr><td id="ccn-variable"><?php _e('C_AUTHOR_ARIN_LOOKUP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><a href="https://www.arin.net/"><?php _e('ARIN Whois', 'custom-comment-notifications'); ?></a><?php _e(' lookup of comment author\'s IP', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    266                             <tr><td id="ccn-variable"><?php _e('C_CONTENT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Content of the comment', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    267                             <tr><td id="ccn-variable"><?php _e('C_EXCERPT', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Excerpt of the comment', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    268                             <tr><td id="ccn-variable"><?php _e('C_WAITING_MODERATION', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Number of comments waiting moderation (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Integer', 'custom-comment-notifications'); ?></td></tr> 
    269                         </table> 
    270                         <hr/><h3><?php _e('Moderation Variables', 'custom-comment-notifications'); ?></h3><hr/> 
    271                         <table id="ccn-moderation-variables-table" class="form-table"> 
    272                             <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
    273                             <tr><td id="ccn-variable"><?php _e('DELETE_TRASH_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to trash or delete Comment (depends on ', 'custom-comment-notifications'); ?><a href=https://codex.wordpress.org/Trash_status><?php _e('EMPTY_TRASH_DAYS', 'custom-comment-notifications'); ?></a><?php _e(' variable)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    274                             <tr><td id="ccn-variable"><?php _e('APPROVE_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to approve comment (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    275                             <tr><td id="ccn-variable"><?php _e('SPAM_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to mark comment as spam', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    276                             <tr><td id="ccn-variable"><?php _e('MODERATION_PANEL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Moderation Panel (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    277                              <tr><td id="ccn-variable"><?php _e('DELETE_TRASH_COMMENT_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to trash or delete Comment (depends on ', 'custom-comment-notifications'); ?><a href=https://codex.wordpress.org/Trash_status><?php _e('EMPTY_TRASH_DAYS', 'custom-comment-notifications'); ?></a><?php _e(' variable)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    278                             <tr><td id="ccn-variable"><?php _e('APPROVE_COMMENT_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to approve comment (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    279                             <tr><td id="ccn-variable"><?php _e('SPAM_COMMENT_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to mark comment as spam', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    280                             <tr><td id="ccn-variable"><?php _e('MODERATION_PANEL_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('URL to Moderation Panel (only valid on Moderator Template)', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    281                         </table> 
    282                         <hr/><h3><?php _e('Site Variables', 'custom-comment-notifications'); ?></h3><hr/> 
    283                         <table id="ccn-moderation-variables-table" class="form-table"> 
    284                             <thead><tr><th><?php _e('Variable', 'custom-comment-notifications'); ?></th><th><?php _e('Description', 'custom-comment-notifications'); ?></th><th><?php _e('Type', 'custom-comment-notifications'); ?></th></tr></thead> 
    285                             <tr><td id="ccn-variable"><?php _e('SITE_LINK', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Site', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Anchor', 'custom-comment-notifications'); ?></td></tr> 
    286                             <tr><td id="ccn-variable"><?php _e('SITE_LINK_URL', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Link to Site', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    287                             <tr><td id="ccn-variable"><?php _e('BLOG_NAME', 'custom-comment-notifications'); ?></td><td id="ccn-variable-description"><?php _e('Blog Name', 'custom-comment-notifications'); ?></td><td id="ccn-variable-type"><?php _e('Text', 'custom-comment-notifications'); ?></td></tr> 
    288                         </table> 
    289                         <span><?php _e('**If Plain Text Email format selection is chosen, then anchor tags will be split out and the URL will immediately follow the corresponding text.', 'custom-comment-notifications'); ?></span> 
    290                     </div> 
    291                      
     291                         
    292292    <?php 
    293293} 
     
    452452function ccn_javascript() { 
    453453    ?> 
    454                     <script type='text/javascript'> 
     454                        <script type='text/javascript'> 
    455455        jQuery(document).ready(function ($) { 
    456456            $('#ccn-template').change(function () { 
     
    770770        $postAuthor = get_userdata($post->post_author); 
    771771 
    772         // Send to the administration and to the post author if the author can modify the comment. 
     772        // Send to the administration and to the post author if the author can modify the comment.    
    773773        $recipients = array(get_option('admin_email')); 
    774         $custom_recipients = split(', ', $moderator_recipients); 
    775         $recipients = array_map('trim', explode(',', $custom_recipients)); 
     774        $custom_recipients = array_map('trim', explode(',', $moderator_recipients)); 
     775        $recipients = array_merge($recipients, $custom_recipients); 
    776776        if($allow_author_moderation && user_can($postAuthor->ID, 'edit_comment', $comment_id) && !empty($postAuthor->user_email)) { 
    777777            if(0 !== strcasecmp($postAuthor->user_email, get_option('admin_email'))) { 
  • custom-comment-notifications/trunk/readme.txt

    r1159751 r1159940  
    44Requires at least: 3.0 
    55Tested up to: 4.2.2 
    6 Stable tag: 1.0.7 
     6Stable tag: 1.0.8 
    77License: GPLv2 or later 
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    1919* **Post Variables** 
    2020  * Post ID 
    21   * Post Author 
    2221  * Post Title 
    2322  * Post Link 
     23  * Post Link URL 
    2424  * Post Link to Specific Comment 
    2525  * Post Link to Comments Section 
     
    3737* **Moderation Variables** 
    3838  * Delete/Trash Comment (Depends on EMPTY_TRASH_DAYS variable) 
     39  * Delete/Trash Comment URL (Depends on EMPTY_TRASH_DAYS variable) 
    3940  * Approve Comment (Moderator Templates Only) 
     41  * Approve Comment URL (Moderator Templates Only) 
    4042  * Spam Comment 
     43  * Spam Comment URL  
    4144  * Moderation Panel Link (Moderator Templates Only) 
     45  * Moderation Panel Link URL (Moderator Templates Only) 
    4246 
    4347* **Site Variables** 
    4448  * Site Link 
     49  * Site Link URL 
    4550  * Blog Name 
    4651 
     
    7479 
    7580== Changelog == 
     81= 1.0.8 = 
     82* **Bug Fixes** 
     83  * An error when building the recipient lists for moderation emails (thanks WSP-webmaster) 
     84 
    7685= 1.0.7 = 
    7786* **Enhancements** 
    7887  * URLs added as additional variables to the Links 
     88 
    7989 
    8090= 1.0.6 =  
     
    90100 
    91101= 1.0.4 = 
    92 * **Enhancments** 
     102* **Enhancements** 
    93103  * Allow Post Author to be excluded from or included in moderation e-mails. 
    94104 
Note: See TracChangeset for help on using the changeset viewer.