Make WordPress Core


Ignore:
Timestamp:
01/03/2015 05:45:17 AM (9 years ago)
Author:
wonderboymusic
Message:

Inline <script>s that are only printed in the admin for pages that are served with the HTML5 doctype absolutely do not need CDATA comments.

Props tw2113 for the initial patch.
See #18788.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-embed.php

    r30979 r31034  
    7878?>
    7979<script type="text/javascript">
    80 /* <![CDATA[ */
    8180    jQuery(document).ready(function($){
    8281        $.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative' ); ?>");
    8382    });
    84 /* ]]> */
    8583</script>
    8684<?php
Note: See TracChangeset for help on using the changeset viewer.