Skip to content

Improve 'upload_files' capability checks in the editor #11910

Closed

Description

@gziolo

Previous work to verify 'upload_files' capability when displaying upload UI in media blocks was done by @imath for #3672 in #4155.

I found new ways to trigger upload UI which should be fixed.

Select Poster Image

  1. Add a Video block.
  2. Insert a video from url.
  3. Click on Select Poster Image.
  4. Media upload modal will show up.

screen shot 2018-11-15 at 11 47 54

Drag & Drop file

  1. Drag & Drop file to the editor from a folder.
  2. It will create a File block with a strange error.
  3. Click Edit icon and Media upload modal will show up.

screen shot 2018-11-15 at 11 51 24

Drag & Drop image

  1. Drag & Drop image to the editor from a folder.
  2. It will create an Image block. It probably will be broken.
  3. Click Edit icon and Media upload modal will show up.

screen shot 2018-11-15 at 11 52 00

Activity

  1. added
    [Type] Bug
    on Nov 15, 2018
  2. added this to the WordPress 5.0 RC milestone on Nov 15, 2018
  3. added
    [Priority] Low
    [Block] File
    [Feature] Drag and Drop
    on Nov 15, 2018
  4. imath commented on Nov 15, 2018

    @imath
    Contributor

    Thanks for adding this issue as a follow-up of #4155. I've just started working on these forgotten cases. I will try to post a PR asap.

  5. added a commit that references this issue on Nov 17, 2018
    88b5033
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] File[Feature] Drag and Drop[Priority] Low[Type] Bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions