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/theme-editor.php

    r29206 r31034  
    230230</div>
    231231<script type="text/javascript">
    232 /* <![CDATA[ */
    233232jQuery(document).ready(function($){
    234233    $('#template').submit(function(){ $('#scrollto').val( $('#newcontent').scrollTop() ); });
    235234    $('#newcontent').scrollTop( $('#scrollto').val() );
    236235});
    237 /* ]]> */
    238236</script>
    239237<?php
Note: See TracChangeset for help on using the changeset viewer.