WordPress.org

Make WordPress Core

Opened 17 months ago

Closed 17 months ago

Last modified 15 months ago

#44578 closed defect (bug) (invalid)

Unexpected string in the output.

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

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 15 months ago.

Download all attachments as: .zip

Change History (4)

#1 @VBog
17 months ago

  • Resolution set to invalid
  • Status changed from new to closed

#2 @SergeyBiryukov
17 months ago

  • Component changed from General to Media
  • Milestone Awaiting Review deleted

#3 @TimothyBlynJacobs
15 months ago

Sorry! I can't read numbers apparently.

Note: See TracTickets for help on using tickets.