WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 22 months ago

#24355 closed defect (bug) (invalid)

Post Formats: any allowed file type can be uploaded to an audio, video or image post

Reported by: kovshenin Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6
Component: Post Formats Keywords: close
Focuses: Cc:

Description

To reproduce:

  1. Create a new post, select the video post format
  2. Hit Select Video from Media Library
  3. Choose Upload Files and upload an image
  4. Hit Select Video

An image is inserted instead of a video, plus after saving, the dimensions constraints are not applied to the image because it's a video post format.

Attachments (1)

24355.diff (948 bytes) - added by kovshenin 2 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 @SergeyBiryukov2 years ago

  • Milestone changed from Awaiting Review to 3.6

comment:2 @alexvorn22 years ago

  • Summary changed from Post Formats: any file type can be uploaded to an audio, video or image post to Post Formats: any IMAGE file type can be uploaded to an audio, video or image post

@kovshenin2 years ago

comment:3 @kovshenin2 years ago

  • Keywords has-patch added; needs-patch removed
  • Summary changed from Post Formats: any IMAGE file type can be uploaded to an audio, video or image post to Post Formats: any file type can be uploaded to an audio, video or image post

@alexvom2: it's not only an image. You can easily upload and insert an audio attachment to a video post format and vice versa, basically with any allowed file types.

24355.diff disables the insert button when selecting an attachment that does not match the library's current type filter. This should work for media in general, not only post formats.

comment:4 follow-up: @alexvorn22 years ago

agree! but any file can be an .exe file or .msi, so this can be misunderstood.

So the title is incorrect.

comment:5 in reply to: ↑ 4 @kovshenin2 years ago

  • Summary changed from Post Formats: any file type can be uploaded to an audio, video or image post to Post Formats: any allowed file type can be uploaded to an audio, video or image post

Replying to alexvorn2: Here we go :)

comment:6 @kovshenin23 months ago

  • Keywords close added; has-patch removed

This is no longer valid with #24452.

comment:7 @wonderboymusic22 months ago

  • Milestone 3.6 deleted
  • Resolution set to invalid
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.