WordPress.org

Make WordPress Core

Changeset 25314


Ignore:
Timestamp:
09/10/2013 02:40:15 PM (6 years ago)
Author:
helen
Message:

Show the IP address, if available, in the comment edit screen submit meta box. props leewillis77. fixes #24638.

File:
1 edited

Legend:

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

    r25083 r25314  
    9292</div>
    9393
     94<?php if ( $ip = get_comment_author_IP() ) : ?>
     95<div class="misc-pub-section misc-pub-comment-author-ip">
     96    <?php _e( 'IP address:' ); ?> <strong><a href="<?php echo esc_url( sprintf( 'http://whois.arin.net/rest/ip/%s', $ip ) ); ?>"><?php echo esc_html( $ip ); ?></a></strong>
     97</div>
     98<?php endif; ?>
     99
    94100<div class="misc-pub-section curtime misc-pub-curtime">
    95101<?php
Note: See TracChangeset for help on using the changeset viewer.