Make WordPress Core


Ignore:
Timestamp:
03/10/2015 02:50:50 PM (12 years ago)
Author:
ocean90
Message:

Comments: Fix undefined $comment_url variable notice, introduced in [31641].

see #23988.

File:
1 edited

Legend:

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

    r31641 r31695  
    150150                        break;
    151151        }
    152         if ( $message )
    153                 echo '<div class="updated"><p>' . $message . '</p></div>';
     152        if ( $message ) {
     153                echo '<div class="notice notice-info"><p>' . $message . '</p></div>';
     154        }
    154155}
    155156?>
    … …  
    187188
    188189                if ( $comment->comment_parent ) {
    189                         $comment_url = esc_url( get_comment_link( $comment->comment_ID ) );
    190190                        $parent      = get_comment( $comment->comment_parent );
    191191                        $parent_link = esc_url( get_comment_link( $comment->comment_parent ) );
    … …  
    201201        <?php
    202202                /* translators: 2: comment date, 3: comment time */
    203                 printf( __( '<a href="%1$s">%2$s at %3$s</a>' ), $comment_url,
     203                printf( __( '<a href="%1$s">%2$s at %3$s</a>' ),
     204                        esc_url( get_comment_link( $comment->comment_ID ) ),
    204205                        /* translators: comment date format. See http://php.net/date */
    205206                        get_comment_date( __( 'Y/m/d' ) ),
Note: See TracChangeset for help on using the changeset viewer.