WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/28/2016 10:02:19 AM (4 years ago)
Author:
ocean90
Message:

Comments: Improve author and content of the default comment.

The new comment:

A WordPress Commenter <wapuu@wordpress.example>:

Hi, this is a comment.
To moderate comments, just log in. There you will have the option to edit or delete them.
Commenter avatars come from <a href="https://gravatar.com">Gravatar</a>.

Also introduces a network setting to set the email address of the first comment author on a new site.

Props Ipstenu, rachelbaker, jorbin, jeremyfelt.
Fixes #36702, #14268.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/network/settings.php

    r37488 r37888  
    6363        'welcome_email', 'welcome_user_email', 'fileupload_maxk', 'global_terms_enabled',
    6464        'illegal_names', 'limited_email_domains', 'banned_email_domains', 'WPLANG', 'admin_email',
     65        'first_comment_email',
    6566    );
    6667
     
    262263                    <p class="description" id="first-comment-author-desc">
    263264                        <?php _e( 'The author of the first comment on a new site.' ) ?>
     265                    </p>
     266                </td>
     267            </tr>
     268            <tr>
     269                <th scope="row"><label for="first_comment_email"><?php _e( 'First Comment Email' ) ?></label></th>
     270                <td>
     271                    <input type="text" size="40" name="first_comment_email" id="first_comment_email" aria-describedby="first-comment-email-desc" value="<?php echo esc_attr( get_site_option( 'first_comment_email' ) ); ?>" />
     272                    <p class="description" id="first-comment-email-desc">
     273                        <?php _e( 'The email address of the first comment author on a new site.' ) ?>
    264274                    </p>
    265275                </td>
Note: See TracChangeset for help on using the changeset viewer.