Viewing 1 replies (of 1 total)
  • Thread Starter Aleksandr

    (@aleksandrx)

    OK, all thanks.
    I took function:

    [ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]

    <?php
    //Check the nonce
    if (isset($_GET['cid'])) {
    	check_admin_referer('requestdeletion_' . (int)$_GET['cid']);
    }
    /* Admin nonce */
    	wp_nonce_field('requestdeletion_' . $curComID);
    
    $post_id = get_the_ID();
    $curComID = get_comment_ID();
    $request_deletion_url =  esc_url(wp_nonce_url(get_bloginfo('url') . "/?aec_page=request-deletion.php&action=requestdeletion&pid=$post_id&cid=$curComID", "requestdeletion_$curComID")."&height=495&width=560");
    
     echo "<span class='reprotf'><a title='Report' href='$request_deletion_url'>Report</a></span>";
     ?>

    And in the file class.ajax.php I switched off a line

    //$canedit = AECCore::can_edit($commentID, $postID);

Viewing 1 replies (of 1 total)
  • The topic ‘Request Deletion Behavior’ is closed to new replies.