get_current_screen()->
set_help_sidebar( '<p><strong>' .
__( 'For more information:'
) . '</strong></p>' .
'<p>' .
__( '<a href="https://wordpress.org/documentation/article/comments-screen/">Documentation on Comments</a>'
) . '</p>' .
'<p>' .
__( '<a href="https://wordpress.org/support/forums/">Support forums</a>'
) . '</p>'
);
wp_enqueue_script( 'comment'
);
require_once ABSPATH . 'wp-admin/admin-header.php';
if ( !
$comment ) { comment_footer_die( __( 'Invalid comment ID.'
) .
sprintf( ' <a href="%s">' .
__( 'Go back'
) . '</a>.', 'javascript:history.go(-1)'
) );
} if ( !
current_user_can( 'edit_comment',
$comment_id ) ) { comment_footer_die( __( 'Sorry, you are not allowed to edit this comment.'
) );
} if ( 'trash' ===
$comment->comment_approved
) { comment_footer_die( __( 'This comment is in the Trash. Please move it out of the Trash if you want to edit it.'
) );
} $comment =
get_comment_to_edit( $comment_id );