Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#24052 closed defect (bug) (fixed)

Don't remove extra content media when removing the first audio / video

Reported by: wonderboymusic Owned by: markjaquith
Priority: normal Milestone: 3.6
Component: Post Formats Version: 3.6
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Only remove ONE piece of media from $post->post_content in setup_postdata(). Patching...

Attachments (3)

24052.diff (3.2 KB ) - added by wonderboymusic 13 years ago.
24052.2.diff (3.2 KB ) - added by wonderboymusic 13 years ago.
References are amazing
24052.3.diff (3.9 KB ) - added by wonderboymusic 13 years ago.

Download all attachments as: .zip

Change History (8)

#1 @wonderboymusic
13 years ago

  • Keywords has-patch added; needs-patch removed

#2 @Ipstenu
13 years ago

  • Cc ipstenu@… added

@wonderboymusic
13 years ago

References are amazing

#3 @Ipstenu
13 years ago

Patch works in trunk :)

#4 @DrewAPicture
13 years ago

  • Versiontrunk

I almost feel like we could do without the extra parameters and accomplish the same thing with a couple of filters instead.

Your patch works in trunk for me as well, by the way.

#5 @markjaquith
13 years ago

  • Owner set to markjaquith
  • Resolutionfixed
  • Status newclosed

In 23984:

Only remove ONE piece of media from the content in setup_postdata().

props wonderboymusic. fixes #24052.

Note: See TracTickets for help on using tickets.