WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#24075 closed defect (bug) (fixed)

wp_video_shortcode()/wp_audio_shortcode() are printing unexpected links on posts screen

Reported by: ocean90 Owned by: ocean90
Milestone: 3.6 Priority: high
Severity: major Version: 3.6
Component: Media Keywords: has-patch commit
Focuses: Cc:

Description

  • Upload a .mov file and insert it into a post
  • Save the post and visit wp-admin/edit.php

Result: http://cl.ly/OGaH

If the filetype isn't in wp_get_audio_extensions()/wp_get_video_extensions() the links will be printed. See trunk/wp-includes/media.php:23983#L864 and trunk/wp-includes/media.php:23983#L971.

Attachments (1)

24075.patch (1.1 KB) - added by SergeyBiryukov 8 years ago.

Download all attachments as: .zip

Change History (6)

#1 @ocean90
8 years ago

Same happens on front-end: http://cl.ly/OHHC

#2 @SergeyBiryukov
8 years ago

  • Priority changed from normal to high
  • Severity changed from normal to major

#3 @SergeyBiryukov
8 years ago

  • Keywords has-patch added; needs-patch removed

#4 @ocean90
8 years ago

  • Keywords commit added

#5 @ocean90
8 years ago

  • Owner set to ocean90
  • Resolution set to fixed
  • Status changed from new to closed

In 23988:

Don't print links for unsupported file types in wp_video_shortcode()/wp_audio_shortcode(). Return them instead.

props SergeyBiryukov. fixes #24075.

Note: See TracTickets for help on using tickets.