Ticket #27013: 27013.4.patch
File 27013.4.patch, 1.7 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
1 1 /* global postL10n, ajaxurl, wpAjax, setPostThumbnailL10n, postboxes, pagenow, tinymce, alert, deleteUserSetting */ 2 /* global theList:true, theExtraList:true, getUserSetting, setUserSetting */2 /* global theList:true, theExtraList:true, getUserSetting, setUserSetting, isAdmin */ 3 3 4 4 var tagBox, commentsBox, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint, makeSlugeditClickable, editPermalink; 5 5 // Back-compat: prevent fatal errors … … 1065 1065 }); 1066 1066 } 1067 1067 1068 if ( ! ( 'ontouchstart' in window ) ) {1068 if ( ! ( 'ontouchstart' in window ) && isAdmin ) { 1069 1069 // When scrolling with mouse wheel or trackpad inside the Text editor, don't scroll the whole window 1070 1070 $content = $('#content').on( 'onwheel' in $document[0] ? 'wheel.text-editor-scroll' : 'mousewheel.text-editor-scroll', function( event ) { 1071 1071 var delta, top,