Make WordPress Core

Opened 12 years ago

Closed 12 years 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's profile 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 12 years ago.

Download all attachments as: .zip

Change History (8)

#1 @SergeyBiryukov
12 years ago

  • Milestone changed from Awaiting Review to 3.6

#2 @alexvorn2
12 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

@kovshenin
12 years ago

#3 @kovshenin
12 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.

#4 follow-up: @alexvorn2
12 years ago

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

So the title is incorrect.

#5 in reply to: ↑ 4 @kovshenin
12 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 :)

#6 @kovshenin
12 years ago

  • Keywords close added; has-patch removed

This is no longer valid with #24452.

#7 @wonderboymusic
12 years ago

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