WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#18760 closed defect (bug) (fixed)

Errant </script> tag in media_upload_form()

Reported by: ryanhellyer Owned by: duck_
Milestone: 3.3 Priority: normal
Severity: normal Version: 3.3
Component: General Keywords: has-patch
Focuses: Cc:

Description

New media-new.php page contains an errant </script> tag. The error is in media_upload_form() in wp-admin/includes/media.php

<form enctype="multipart/form-data" method="post" action="http://localhost/trunk/wp-admin/media-upload.php?inline=&amp;upload-page-form=" class="media-upload-form type-form validate" id="file-form">
</script>

This is my first patched ticket ever, so apologise if I screw any of this up.

Attachments (1)

remove-script-tag.diff (372 bytes) - added by ryanhellyer 3 years ago.
Patch for removing </script> tag

Download all attachments as: .zip

Change History (3)

ryanhellyer3 years ago

Patch for removing </script> tag

comment:1 duck_3 years ago

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

In [18758]:

Remove extraneous closing script tag. Props ryanhellyer. See r18482, #18206. Fixes #18760.

comment:2 duck_3 years ago

  • Milestone changed from Awaiting Review to 3.3
Note: See TracTickets for help on using tickets.