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-admin/custom-header.php

    r30695 r31034  
    391391
    392392<script type="text/javascript">
    393 /* <![CDATA[ */
    394393(function($){
    395394    var default_color = '<?php echo $default_color; ?>',
     
    434433    });
    435434})(jQuery);
    436 /* ]]> */
    437435</script>
    438436<?php
     
    446444    public function js_2() { ?>
    447445<script type="text/javascript">
    448 /* <![CDATA[ */
    449446    function onEndCrop( coords ) {
    450447        jQuery( '#x1' ).val(coords.x);
     
    508505        });
    509506    });
    510 /* ]]> */
    511507</script>
    512508<?php
Note: See TracChangeset for help on using the changeset viewer.