Changeset 31034
- Timestamp:
- 01/03/2015 05:45:17 AM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/custom-header.php
r30695 r31034 391 391 392 392 <script type="text/javascript"> 393 /* <![CDATA[ */394 393 (function($){ 395 394 var default_color = '<?php echo $default_color; ?>', … … 434 433 }); 435 434 })(jQuery); 436 /* ]]> */437 435 </script> 438 436 <?php … … 446 444 public function js_2() { ?> 447 445 <script type="text/javascript"> 448 /* <![CDATA[ */449 446 function onEndCrop( coords ) { 450 447 jQuery( '#x1' ).val(coords.x); … … 508 505 }); 509 506 }); 510 /* ]]> */511 507 </script> 512 508 <?php -
trunk/src/wp-admin/export.php
r30155 r31034 25 25 ?> 26 26 <script type="text/javascript"> 27 //<![CDATA[28 27 jQuery(document).ready(function($){ 29 28 var form = $('#export-filters'), … … 38 37 }); 39 38 }); 40 //]]>41 39 </script> 42 40 <?php -
trunk/src/wp-admin/includes/media.php
r30981 r31034 240 240 ?> 241 241 <script type="text/javascript"> 242 /* <![CDATA[ */243 242 var win = window.dialogArguments || opener || parent || top; 244 243 win.send_to_editor('<?php echo addslashes($html); ?>'); 245 /* ]]> */246 244 </script> 247 245 <?php … … 449 447 ?> 450 448 <script type="text/javascript"> 451 //<![CDATA[452 449 addLoadEvent = 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();}}}; 453 450 var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', pagenow = 'media-upload-popup', adminpage = 'media-upload-popup', 454 451 isRtl = <?php echo (int) is_rtl(); ?>; 455 //]]>456 452 </script> 457 453 <?php … … 683 679 if ( isset($_POST['insert-gallery']) || isset($_POST['update-gallery']) ) { ?> 684 680 <script type="text/javascript"> 685 /* <![CDATA[ */686 681 var win = window.dialogArguments || opener || parent || top; 687 682 win.tb_remove(); 688 /* ]]> */689 683 </script> 690 684 <?php … … 1947 1941 1948 1942 <script type="text/javascript"> 1949 //<![CDATA[1950 1943 jQuery(function($){ 1951 1944 var preloaded = $(".media-item.preloaded"); … … 1955 1948 updateMediaForm(); 1956 1949 }); 1957 //]]>1958 1950 </script> 1959 1951 <div id="media-items"><?php … … 2010 2002 2011 2003 <script type="text/javascript"> 2012 //<![CDATA[2013 2004 var addExtImage = { 2014 2005 … … 2100 2091 }); 2101 2092 }); 2102 2103 //]]>2104 2093 </script> 2105 2094 -
trunk/src/wp-admin/includes/ms.php
r30630 r31034 956 956 ?> 957 957 <script type="text/javascript"> 958 //<![CDATA[959 958 var tb_pathToImage = "<?php echo includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ); ?>"; 960 //]]>961 959 </script> 962 960 <?php -
trunk/src/wp-admin/includes/template.php
r31019 r31034 1550 1550 ?> 1551 1551 <script type="text/javascript"> 1552 //<![CDATA[1553 1552 addLoadEvent = 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();}}}; 1554 1553 function tb_close(){var win=window.dialogArguments||opener||parent||top;win.tb_remove();} … … 1560 1559 decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>', 1561 1560 isRtl = <?php echo (int) is_rtl(); ?>; 1562 //]]>1563 1561 </script> 1564 1562 <?php … … 1597 1595 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin wp-core-ui no-js iframe <?php echo $admin_body_classes . ' ' . $admin_body_class; ?>"> 1598 1596 <script type="text/javascript"> 1599 //<![CDATA[1600 1597 (function(){ 1601 1598 var c = document.body.className; … … 1603 1600 document.body.className = c; 1604 1601 })(); 1605 //]]>1606 1602 </script> 1607 1603 <?php … … 1730 1726 ?> 1731 1727 <script type="text/javascript"> 1732 /* <![CDATA[ */1733 1728 var testCompression = { 1734 1729 get : function(test) { … … 1777 1772 }; 1778 1773 testCompression.check(); 1779 /* ]]> */1780 1774 </script> 1781 1775 <?php … … 1976 1970 ?> 1977 1971 <script type="text/javascript"> 1978 //<![CDATA[1979 1972 (function($){ 1980 1973 var options = <?php echo wp_json_encode( $args ); ?>, setup; … … 2002 1995 2003 1996 })( jQuery ); 2004 //]]>2005 1997 </script> 2006 1998 <?php -
trunk/src/wp-admin/network/site-users.php
r30356 r31034 178 178 179 179 <script type="text/javascript"> 180 /* <![CDATA[ */181 180 var current_site_id = <?php echo $id; ?>; 182 /* ]]> */183 181 </script> 184 182 -
trunk/src/wp-admin/options-general.php
r30705 r31034 29 29 ?> 30 30 <script type="text/javascript"> 31 //<![CDATA[32 31 jQuery(document).ready(function($){ 33 32 var $siteName = $( '#wp-admin-bar-site-name' ).children( 'a' ).first(), … … 78 77 }); 79 78 }); 80 //]]>81 79 </script> 82 80 <?php -
trunk/src/wp-admin/options-permalink.php
r29716 r31034 55 55 ?> 56 56 <script type="text/javascript"> 57 //<![CDATA[58 57 jQuery(document).ready(function() { 59 58 jQuery('.permalink-structure input:radio').change(function() { … … 66 65 }); 67 66 }); 68 //]]>69 67 </script> 70 68 <?php -
trunk/src/wp-admin/options-reading.php
r27469 r31034 24 24 ?> 25 25 <script type="text/javascript"> 26 //<![CDATA[27 26 jQuery(document).ready(function($){ 28 27 var section = $('#front-static-pages'), … … 35 34 section.find('input:radio').change(check_disabled); 36 35 }); 37 //]]>38 36 </script> 39 37 <?php -
trunk/src/wp-admin/press-this.php
r30438 r31034 110 110 case 'video': ?> 111 111 <script type="text/javascript"> 112 /* <![CDATA[ */113 112 jQuery('.select').click(function() { 114 113 append_editor(jQuery('#embed-code').val()); … … 120 119 jQuery('#extra-fields').html(''); 121 120 }); 122 /* ]]> */123 121 </script> 124 122 <div class="postbox"> … … 133 131 case 'photo_thickbox': ?> 134 132 <script type="text/javascript"> 135 /* <![CDATA[ */136 133 jQuery('.cancel').click(function() { 137 134 tb_remove(); … … 140 137 image_selector(this); 141 138 }); 142 /* ]]> */143 139 </script> 144 140 <h3 class="tb"><label for="tb_this_photo_description"><?php _e('Description') ?></label></h3> … … 300 296 <title><?php _e('Press This') ?></title> 301 297 <script type="text/javascript"> 302 //<![CDATA[303 298 addLoadEvent = 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();}}}; 304 299 var ajaxurl = '<?php echo admin_url( 'admin-ajax.php', 'relative' ); ?>', pagenow = 'press-this', isRtl = <?php echo (int) is_rtl(); ?>; 305 300 var photostorage = false; 306 //]]>307 301 </script> 308 302 -
trunk/src/wp-admin/theme-editor.php
r29206 r31034 230 230 </div> 231 231 <script type="text/javascript"> 232 /* <![CDATA[ */233 232 jQuery(document).ready(function($){ 234 233 $('#template').submit(function(){ $('#scrollto').val( $('#newcontent').scrollTop() ); }); 235 234 $('#newcontent').scrollTop( $('#scrollto').val() ); 236 235 }); 237 /* ]]> */238 236 </script> 239 237 <?php -
trunk/src/wp-includes/class-wp-embed.php
r30979 r31034 78 78 ?> 79 79 <script type="text/javascript"> 80 /* <![CDATA[ */81 80 jQuery(document).ready(function($){ 82 81 $.get("<?php echo admin_url( 'admin-ajax.php?action=oembed-cache&post=' . $post->ID, 'relative' ); ?>"); 83 82 }); 84 /* ]]> */85 83 </script> 86 84 <?php
Note: See TracChangeset
for help on using the changeset viewer.