Make WordPress Core


Ignore:
Timestamp:
06/24/2015 08:55:05 PM (10 years ago)
Author:
wonderboymusic
Message:

Remove the whois.arin.net link from wp_notify_postauthor() and wp_notify_moderator().
Also, remove from edit-form-comment.php and add a new filter: edit_comment_misc_actions.

Props ozh, joedolson, rachelbaker.
Fixes #15281.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-comment.php

    r32801 r32929  
    8484</fieldset>
    8585
    86 <?php if ( $ip = get_comment_author_IP() ) : ?>
    87 <div class="misc-pub-section misc-pub-comment-author-ip">
    88     <span aria-hidden="true"><?php _e( 'IP address:' ); ?></span> <strong><a href="<?php echo esc_url( sprintf( 'http://whois.arin.net/rest/ip/%s', $ip ) ); ?>"> <span class="screen-reader-text"><?php _e( 'IP address:' ); ?> </span><?php echo esc_html( $ip ); ?></a></strong>
    89 </div>
    90 <?php endif; ?>
    91 
    9286<div class="misc-pub-section curtime misc-pub-curtime">
    9387<?php
     
    134128</div>
    135129<?php endif; ?>
     130
     131<?php
     132    /**
     133     * Add additional miscellaneous actions to the edit comment form sidebar.
     134     *
     135     * @since 4.3.0
     136     *
     137     * @param string Output HTML to display miscellaneous action.
     138     * @param object $comment Current comment object.
     139     */
     140     echo apply_filters( 'edit_comment_misc_actions', '', $comment );
     141?>
    136142
    137143</div> <!-- misc actions -->
Note: See TracChangeset for help on using the changeset viewer.