Show the IP address, if available, in the comment edit screen submit meta box. props leewillis77. fixes #24638.
git-svn-id: https://develop.svn.wordpress.org/trunk@25314 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5a75531f19
commit
37e5277651
@ -91,6 +91,12 @@ if ( !defined('ABSPATH') )
|
|||||||
<label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php /* translators: comment type radio button */ _ex('Spam', 'adjective'); ?></label>
|
<label class="spam"><input type="radio"<?php checked( $comment->comment_approved, 'spam' ); ?> name="comment_status" value="spam" /><?php /* translators: comment type radio button */ _ex('Spam', 'adjective'); ?></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<?php if ( $ip = get_comment_author_IP() ) : ?>
|
||||||
|
<div class="misc-pub-section misc-pub-comment-author-ip">
|
||||||
|
<?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>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<div class="misc-pub-section curtime misc-pub-curtime">
|
<div class="misc-pub-section curtime misc-pub-curtime">
|
||||||
<?php
|
<?php
|
||||||
// translators: Publish box date format, see http://php.net/date
|
// translators: Publish box date format, see http://php.net/date
|
||||||
|
Loading…
Reference in New Issue
Block a user