Changeset 45583 for trunk/src/wp-admin/comment.php
- Timestamp:
- 07/01/2019 12:50:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/comment.php
r45140 r45583 63 63 $comment_id = absint( $_GET['c'] ); 64 64 65 if ( ! $comment = get_comment( $comment_id ) ) { 65 $comment = get_comment( $comment_id ); 66 if ( ! $comment ) { 66 67 comment_footer_die( __( 'Invalid comment ID.' ) . sprintf( ' <a href="%s">' . __( 'Go back' ) . '</a>.', 'javascript:history.go(-1)' ) ); 67 68 } … … 89 90 $comment_id = absint( $_GET['c'] ); 90 91 91 if ( ! $comment = get_comment( $comment_id ) ) { 92 $comment = get_comment( $comment_id ); 93 if ( ! $comment ) { 92 94 wp_redirect( admin_url( 'edit-comments.php?error=1' ) ); 93 95 die(); … … 261 263 $noredir = isset( $_REQUEST['noredir'] ); 262 264 263 if ( ! $comment = get_comment( $comment_id ) ) { 265 $comment = get_comment( $comment_id ); 266 if ( ! $comment ) { 264 267 comment_footer_die( __( 'Invalid comment ID.' ) . sprintf( ' <a href="%s">' . __( 'Go back' ) . '</a>.', 'edit-comments.php' ) ); 265 268 }
Note: See TracChangeset
for help on using the changeset viewer.