mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@31034 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -390,7 +390,6 @@ class Custom_Image_Header {
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
(function($){
|
||||
var default_color = '<?php echo $default_color; ?>',
|
||||
header_text_fields;
|
||||
@@ -433,7 +432,6 @@ class Custom_Image_Header {
|
||||
<?php endif; ?>
|
||||
});
|
||||
})(jQuery);
|
||||
/* ]]> */
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
@@ -445,7 +443,6 @@ class Custom_Image_Header {
|
||||
*/
|
||||
public function js_2() { ?>
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
function onEndCrop( coords ) {
|
||||
jQuery( '#x1' ).val(coords.x);
|
||||
jQuery( '#y1' ).val(coords.y);
|
||||
@@ -507,7 +504,6 @@ class Custom_Image_Header {
|
||||
}
|
||||
});
|
||||
});
|
||||
/* ]]> */
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user