Make WordPress Core

Ticket #25521: 25521.diff

File 25521.diff, 1.3 KB (added by DrewAPicture, 11 years ago)

fix duplicate comments, other wording

  • src/wp-admin/edit-form-comment.php

     
    4949        <?php
    5050                if ( ! empty( $comment->comment_author_url ) && 'http://' != $comment->comment_author_url ) {
    5151                        $link = '<a href="' . $comment->comment_author_url . '" rel="external nofollow" target="_blank">' . __('visit site') . '</a>';
    52                         printf( __( 'URL (%s):' ), apply_filters('get_comment_author_link', $link ) );
     52                        /** This filter is documented in wp-includes/comment-template.php */
     53                        printf( __( 'URL (%s):' ), apply_filters( 'get_comment_author_link', $link ) );
    5354                } else {
    5455                        _e( 'URL:' );
    5556                } ?></td>
     
    127128
    128129<div id="postbox-container-2" class="postbox-container">
    129130<?php
     131/** This action is documented in wp-admin/edit-form-advanced.php */
     132do_action( 'add_meta_boxes', 'comment', $comment );
    130133
    131 do_action('add_meta_boxes', 'comment', $comment);
    132 do_action('add_meta_boxes_comment', $comment);
     134/**
     135 * Fires when comment-specific meta boxes are added.
     136 *
     137 * @since 3.0.0
     138 *
     139 * @param object $comment Comment object.
     140 */
     141do_action( 'add_meta_boxes_comment', $comment );
    133142
    134143do_meta_boxes(null, 'normal', $comment);
    135144