Ticket #27013: 27013.3.patch
File 27013.3.patch, 1.2 KB (added by , 11 years ago) |
---|
-
src/wp-admin/admin-header.php
65 65 adminpage = '<?php echo $admin_body_class; ?>', 66 66 thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>', 67 67 decimalPoint = '<?php echo addslashes( $wp_locale->number_format['decimal_point'] ); ?>', 68 isRtl = <?php echo (int) is_rtl(); ?>; 68 isRtl = <?php echo (int) is_rtl(); ?>, 69 isAdmin = true; 69 70 </script> 70 71 <meta name="viewport" content="width=device-width,initial-scale=1.0"> 71 72 <?php -
src/wp-admin/js/post.js
1064 1064 }); 1065 1065 } 1066 1066 1067 if ( ! ( 'ontouchstart' in window ) ) {1067 if ( ! ( 'ontouchstart' in window ) && isAdmin ) { 1068 1068 // When scrolling with mouse wheel or trackpad inside the Text editor, don't scroll the whole window 1069 1069 $content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) { 1070 1070 var delta, origEvent = event.originalEvent;