Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#44578 closed defect (bug) (invalid)

Unexpected string in the output.

Reported by: VBog Owned by:
Priority: normal Milestone:
Component: Media Version: 4.9.7
Severity: normal Keywords:
Cc: Focuses:

Description

wp-includes/media.php in function wp_playlist_scripts( $type )
This code will appear in the output for any function call:

<?php
?>
<!--[if lt IE 9]><script>document.createElement('<?php echo esc_js( $type ) ?>');</script><![endif]-->
<?php

I think that this is not correct. For example, this string appears before json in response of WP REST API request.
https://bogaiskov.ru/test/wp-json/wp/v2/posts/787

Attachments (1)

44578.diff (6.9 KB ) - added by TimothyBlynJacobs 8 years ago.

Download all attachments as: .zip

Change History (4)

#1 @VBog
8 years ago

  • Resolutioninvalid
  • Status newclosed

#2 @SergeyBiryukov
8 years ago

  • Component GeneralMedia
  • Milestone Awaiting Review

#3 @TimothyBlynJacobs
8 years ago

Sorry! I can't read numbers apparently.

Note: See TracTickets for help on using tickets.