get_comment_to_edit example

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 );

        require ABSPATH . 'wp-admin/edit-form-comment.php';

        break;

    case 'delete':
    case 'approve':
    case 'trash':
    case 'spam':
        // Used in the HTML title tag.         $title = __( 'Moderate Comment' );

        
Home | Imprint | This part of the site doesn't use cookies.