Make WordPress Core


Ignore:
Timestamp:
01/03/2015 05:45:17 AM (10 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/press-this.php

    r30438 r31034  
    110110        case 'video': ?>
    111111            <script type="text/javascript">
    112             /* <![CDATA[ */
    113112                jQuery('.select').click(function() {
    114113                    append_editor(jQuery('#embed-code').val());
     
    120119                    jQuery('#extra-fields').html('');
    121120                });
    122             /* ]]> */
    123121            </script>
    124122            <div class="postbox">
     
    133131        case 'photo_thickbox': ?>
    134132            <script type="text/javascript">
    135                 /* <![CDATA[ */
    136133                jQuery('.cancel').click(function() {
    137134                    tb_remove();
     
    140137                    image_selector(this);
    141138                });
    142                 /* ]]> */
    143139            </script>
    144140            <h3 class="tb"><label for="tb_this_photo_description"><?php _e('Description') ?></label></h3>
     
    300296<title><?php _e('Press This') ?></title>
    301297<script type="text/javascript">
    302 //<![CDATA[
    303298addLoadEvent = function(func){if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function'){wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
    304299var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', pagenow = 'press-this', isRtl = <?php echo (int) is_rtl(); ?>;
    305300var photostorage = false;
    306 //]]>
    307301</script>
    308302
Note: See TracChangeset for help on using the changeset viewer.