Forum Replies Created

Viewing 1 replies (of 1 total)
  • I have the same problem and I was wondering if I could change the post where it says ERROR – You do not have permission. In my FTP wp-admin > post.php > it says

    } elseif ($action == ‘editattachment’) {
    $location = ‘attachments.php’;
    } else {
    $location = ‘post-new.php’;
    }
    }

    wp_redirect($location); // Send user on their way while we keep working

    exit();
    break;

    case ‘delete’:
    $post_id = (isset($_GET[‘post’])) ? intval($_GET[‘post’]) : intval($_POST[‘post_ID’]);
    check_admin_referer(‘delete-post_’ . $post_id);

    $post = & get_post($post_id);

    if ( !current_user_can(‘delete_post’, $post_id) )
    wp_die( __(‘[b]You are not allowed to delete this post.[/b]’) );

    if ( $post->post_type == ‘attachment’ ) {
    if ( ! wp_delete_attachment($post_id) )
    wp_die( __(‘Error in deleting…’) );
    } else {

    This is where the source of it is coming from.. how can I change this?

Viewing 1 replies (of 1 total)