Make WordPress Core

Ticket #25521: edit-form-comment.diff

File edit-form-comment.diff, 1.2 KB (added by rzen, 11 years ago)
  • 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                        //duplicate hook
     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//duplicate hook
     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 before comment-specific meta boxes are displayed.
     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