Ticket #44371: explicit-globals.patch
File explicit-globals.patch, 21.7 KB (added by , 7 years ago) |
---|
-
src/js/_enqueues/admin/common.js
diff --git src/js/_enqueues/admin/common.js src/js/_enqueues/admin/common.js index aba2b66..8b19276 100644
1 1 /* @output wp-admin/js/common.js */ 2 2 3 3 /* global setUserSetting, ajaxurl, commonL10n, alert, confirm, pagenow */ 4 var showNotice, adminMenu, columns, validateForm, screenMeta;5 4 6 5 /** 7 6 * Adds common WordPress functionality to the window. … … var showNotice, adminMenu, columns, validateForm, screenMeta; 21 20 * @since 2.7.0 22 21 * @deprecated 3.3.0 23 22 */ 24 adminMenu = {23 window.adminMenu = { 25 24 init : function() {}, 26 25 fold : function() {}, 27 26 restoreMenuState : function() {}, … … adminMenu = { 30 29 }; 31 30 32 31 // Show/hide/save table columns. 33 columns = {32 window.columns = { 34 33 35 34 /** 36 35 * Initializes the column toggles in the screen options. … … $document.ready(function(){columns.init();}); 156 155 * 157 156 * @returns {boolean} Returns true if all required fields are not an empty string. 158 157 */ 159 validateForm = function( form ) {158 window.validateForm = function( form ) { 160 159 return !$( form ) 161 160 .find( '.form-required' ) 162 161 .filter( function() { return $( ':input:visible', this ).val() === ''; } ) … … validateForm = function( form ) { 176 175 * 177 176 * @returns {void} 178 177 */ 179 showNotice = {178 window.showNotice = { 180 179 181 180 /** 182 181 * Shows a delete confirmation pop-up message. … … showNotice = { 217 216 * 218 217 * @returns {void} 219 218 */ 220 screenMeta = {219 window.screenMeta = { 221 220 element: null, // #screen-meta 222 221 toggles: null, // .screen-meta-toggle 223 222 page: null, // #wpcontent -
src/js/_enqueues/admin/edit-comments.js
diff --git src/js/_enqueues/admin/edit-comments.js src/js/_enqueues/admin/edit-comments.js index e2371a2..b7e7ffd 100644
1 1 /* @output wp-admin/js/edit-comments.js */ 2 2 3 3 /* global adminCommentsL10n, thousandsSeparator, list_args, QTags, ajaxurl, wpAjax */ 4 var setCommentsList, theList, theExtraList, commentReply;5 4 6 5 (function($) { 7 6 var getCount, updateCount, updateCountText, updatePending, updateApproved, … … var getCount, updateCount, updateCountText, updatePending, updateApproved, 186 185 }); 187 186 }; 188 187 189 setCommentsList = function() {188 window.setCommentsList = function() { 190 189 var totalInput, perPageInput, pageInput, dimAfter, delBefore, updateTotalCount, delAfter, refillTheExtraList, diff, 191 190 lastConfidentTime = 0; 192 191 … … setCommentsList = function() { 562 561 }); 563 562 }; 564 563 565 theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } );566 theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } )564 window.theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } ); 565 window.theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } ) 567 566 .bind('wpListDelEnd', function(e, s){ 568 567 var wpListsData = $(s.target).attr('data-wp-lists'), id = s.element.replace(/[^0-9]+/g, ''); 569 568 … … setCommentsList = function() { 572 571 }); 573 572 }; 574 573 575 commentReply = {574 window.commentReply = { 576 575 cid : '', 577 576 act : '', 578 577 originalContent : '', -
src/js/_enqueues/admin/inline-edit-post.js
diff --git src/js/_enqueues/admin/inline-edit-post.js src/js/_enqueues/admin/inline-edit-post.js index 8bc7d37..2c0c2d7 100644
window.wp = window.wp || {}; 22 22 * @property {string} what The prefix before the post id. 23 23 * 24 24 */ 25 var inlineEditPost;26 25 ( function( $, wp ) { 27 26 28 inlineEditPost = {27 window.inlineEditPost = { 29 28 30 29 /** 31 30 * Initializes the inline and bulk post editor. -
src/js/_enqueues/admin/inline-edit-tax.js
diff --git src/js/_enqueues/admin/inline-edit-tax.js src/js/_enqueues/admin/inline-edit-tax.js index d589135..882ac3f 100644
window.wp = window.wp || {}; 17 17 * @property {string} what The type property with a hash prefixed and a dash 18 18 * suffixed. 19 19 */ 20 var inlineEditTax;21 22 20 ( function( $, wp ) { 23 21 24 inlineEditTax = {22 window.inlineEditTax = { 25 23 26 24 /** 27 25 * Initializes the inline taxonomy editor by adding event handlers to be able to -
src/js/_enqueues/admin/media-upload.js
diff --git src/js/_enqueues/admin/media-upload.js src/js/_enqueues/admin/media-upload.js index 136b0e4..154f1a1 100644
14 14 15 15 /* global tinymce, QTags */ 16 16 17 var wpActiveEditor, send_to_editor;18 19 17 /** 20 18 * Sends the HTML passed in the parameters to TinyMCE. 21 19 * … … var wpActiveEditor, send_to_editor; 28 26 * are unavailable. This means that the HTML was not 29 27 * sent to the editor. 30 28 */ 31 send_to_editor = function( html ) {29 window.send_to_editor = function( html ) { 32 30 var editor, 33 31 hasTinymce = typeof tinymce !== 'undefined', 34 32 hasQuicktags = typeof QTags !== 'undefined'; … … send_to_editor = function( html ) { 37 35 if ( ! wpActiveEditor ) { 38 36 if ( hasTinymce && tinymce.activeEditor ) { 39 37 editor = tinymce.activeEditor; 40 w pActiveEditor = editor.id;38 window.wpActiveEditor = editor.id; 41 39 } else if ( ! hasQuicktags ) { 42 40 return false; 43 41 } -
src/js/_enqueues/admin/media.js
diff --git src/js/_enqueues/admin/media.js src/js/_enqueues/admin/media.js index 68a9b75..fde4795 100644
12 12 13 13 /* global ajaxurl, attachMediaBoxL10n, _wpMediaGridSettings, showNotice */ 14 14 15 var findPosts;16 17 15 ( function( $ ){ 18 findPosts = {16 window.findPosts = { 19 17 /** 20 18 * Opens a dialog to attach media to a post. 21 19 * -
src/js/_enqueues/admin/plugin-install.js
diff --git src/js/_enqueues/admin/plugin-install.js src/js/_enqueues/admin/plugin-install.js index 1a2cf17..230dc6e 100644
5 5 */ 6 6 7 7 /* global plugininstallL10n, tb_click, tb_remove */ 8 var tb_position; 8 9 9 jQuery( document ).ready( function( $ ) { 10 10 11 11 var tbWindow, … … jQuery( document ).ready( function( $ ) { 18 18 $wrap = $ ( '.wrap' ), 19 19 $body = $( document.body ); 20 20 21 tb_position = function() {21 window.tb_position = function() { 22 22 var width = $( window ).width(), 23 23 H = $( window ).height() - ( ( 792 < width ) ? 60 : 20 ), 24 24 W = ( 792 < width ) ? 772 : width - 20; -
src/js/_enqueues/admin/post.js
diff --git src/js/_enqueues/admin/post.js src/js/_enqueues/admin/post.js index 18f6907..ae61de2 100644
7 7 /* global postL10n, ajaxurl, wpAjax, setPostThumbnailL10n, postboxes, pagenow, tinymce, alert, deleteUserSetting */ 8 8 /* global theList:true, theExtraList:true, getUserSetting, setUserSetting, commentReply */ 9 9 10 var commentsBox, WPSetThumbnailHTML, WPSetThumbnailID, WPRemoveThumbnail, wptitlehint, makeSlugeditClickable, editPermalink;11 10 // Backwards compatibility: prevent fatal errors. 12 makeSlugeditClickable =editPermalink = function(){};11 window.makeSlugeditClickable = window.editPermalink = function(){}; 13 12 14 13 // Make sure the wp object exists. 15 14 window.wp = window.wp || {}; … … window.wp = window.wp || {}; 24 23 * 25 24 * @namespace commentsBox 26 25 */ 27 commentsBox = {26 window.commentsBox = { 28 27 // Comment offset to use when fetching new comments. 29 28 st : 0, 30 29 … … window.wp = window.wp || {}; 108 107 * 109 108 * @global 110 109 */ 111 WPSetThumbnailHTML = function(html){110 window.WPSetThumbnailHTML = function(html){ 112 111 $('.inside', '#postimagediv').html(html); 113 112 }; 114 113 … … window.wp = window.wp || {}; 119 118 * 120 119 * @global 121 120 */ 122 WPSetThumbnailID = function(id){121 window.WPSetThumbnailID = function(id){ 123 122 var field = $('input[value="_thumbnail_id"]', '#list-table'); 124 123 if ( field.length > 0 ) { 125 124 $('#meta\\[' + field.attr('id').match(/[0-9]+/) + '\\]\\[value\\]').text(id); … … window.wp = window.wp || {}; 133 132 * 134 133 * @global 135 134 */ 136 WPRemoveThumbnail = function(nonce){135 window.WPRemoveThumbnail = function(nonce){ 137 136 $.post(ajaxurl, { 138 137 action: 'set-post-thumbnail', post_id: $( '#post_ID' ).val(), thumbnail_id: -1, _ajax_nonce: nonce, cookie: encodeURIComponent( document.cookie ) 139 138 }, … … jQuery(document).ready( function($) { 941 940 * 942 941 * @returns void 943 942 */ 944 function editPermalink() {943 window.editPermalink = function() { 945 944 var i, slug_value, 946 945 $el, revert_e, 947 946 c = 0, … … jQuery(document).ready( function($) { 1048 1047 * 1049 1048 * @returns void 1050 1049 */ 1051 w ptitlehint = function(id) {1050 window.wptitlehint = function(id) { 1052 1051 id = id || 'title'; 1053 1052 1054 1053 var title = $('#' + id), titleprompt = $('#' + id + '-prompt-text'); -
src/js/_enqueues/admin/postbox.js
diff --git src/js/_enqueues/admin/postbox.js src/js/_enqueues/admin/postbox.js index 265da9f..914ee75 100644
9 9 10 10 /* global ajaxurl, postBoxL10n */ 11 11 12 /**13 * This object contains all function to handle the behaviour of the post boxes. The post boxes are the boxes you see14 * around the content on the edit page.15 *16 * @since 2.7.017 *18 * @namespace postboxes19 *20 * @type {Object}21 */22 var postboxes;23 24 12 (function($) { 25 13 var $document = $( document ); 26 14 27 postboxes = { 15 /** 16 * This object contains all function to handle the behaviour of the post boxes. The post boxes are the boxes you see 17 * around the content on the edit page. 18 * 19 * @since 2.7.0 20 * 21 * @namespace postboxes 22 * 23 * @type {Object} 24 */ 25 window.postboxes = { 28 26 29 27 /** 30 28 * Handles a click on either the postbox heading or the postbox open/close icon. -
src/js/_enqueues/admin/tags-box.js
diff --git src/js/_enqueues/admin/tags-box.js src/js/_enqueues/admin/tags-box.js index 982af4e..629816b 100644
3 3 /* jshint curly: false, eqeqeq: false */ 4 4 /* global ajaxurl */ 5 5 6 var tagBox, array_unique_noempty;7 8 6 ( function( $ ) { 9 7 var tagDelimiter = ( window.tagsSuggestL10n && window.tagsSuggestL10n.tagDelimiter ) || ','; 10 8 … … var tagBox, array_unique_noempty; 22 20 * 23 21 * @return {Array} A new array containing only the unique items. 24 22 */ 25 array_unique_noempty = function( array ) {23 window.array_unique_noempty = function( array ) { 26 24 var out = []; 27 25 28 26 // Trim the values and ensure they are unique. … … var tagBox, array_unique_noempty; 47 45 * 48 46 * @global 49 47 */ 50 tagBox = {48 window.tagBox = { 51 49 /** 52 50 * Cleans up tags by removing redundant characters. 53 51 * -
src/js/_enqueues/admin/widgets.js
diff --git src/js/_enqueues/admin/widgets.js src/js/_enqueues/admin/widgets.js index 75ac338..fcbc7c7 100644
1 1 /* @output wp-admin/js/widgets.js */ 2 2 3 3 /* global ajaxurl, isRtl */ 4 var wpWidgets; 4 5 5 (function($) { 6 6 var $document = $( document ); 7 7 8 w pWidgets = {8 window.wpWidgets = { 9 9 /** 10 10 * A closed Sidebar that gets a Widget dragged over it. 11 11 * -
src/js/_enqueues/lib/ajax-response.js
diff --git src/js/_enqueues/lib/ajax-response.js src/js/_enqueues/lib/ajax-response.js index 3a8199d..7feab3b 100644
1 1 /* @output wp-includes/js/wp-ajax-response.js */ 2 2 3 varwpAjax = jQuery.extend( {3 window.wpAjax = jQuery.extend( { 4 4 unserialize: function( s ) { 5 5 var r = {}, q, pp, i, p; 6 6 if ( !s ) { return r; } -
src/js/_enqueues/lib/comment-reply.js
diff --git src/js/_enqueues/lib/comment-reply.js src/js/_enqueues/lib/comment-reply.js index fde5f51..0c09560 100644
8 8 * 9 9 * @type {Object} 10 10 */ 11 var addComment; 12 addComment = ( function( window ) { 11 window.addComment = ( function( window ) { 13 12 // Avoid scope lookups on commonly used variables. 14 13 var document = window.document; 15 14 -
src/js/_enqueues/lib/cookies.js
diff --git src/js/_enqueues/lib/cookies.js src/js/_enqueues/lib/cookies.js index eda46b7..b67ea24 100644
7 7 /* global userSettings */ 8 8 /* exported getUserSetting, setUserSetting, deleteUserSetting */ 9 9 10 varwpCookies = {10 window.wpCookies = { 11 11 // The following functions are from Cookie.js class in TinyMCE 3, Moxiecode, used under LGPL. 12 12 13 13 each: function( obj, cb, scope ) { … … var wpCookies = { 139 139 }; 140 140 141 141 // Returns the value as string. Second arg or empty string is returned when value is not set. 142 function getUserSetting( name, def ) {142 window.getUserSetting = function( name, def ) { 143 143 var settings = getAllUserSettings(); 144 144 145 145 if ( settings.hasOwnProperty( name ) ) { … … function getUserSetting( name, def ) { 156 156 // Both name and value must be only ASCII letters, numbers or underscore 157 157 // and the shorter, the better (cookies can store maximum 4KB). Not suitable to store text. 158 158 // The value is converted and stored as string. 159 function setUserSetting( name, value, _del ) {159 window.setUserSetting = function( name, value, _del ) { 160 160 if ( 'object' !== typeof userSettings ) { 161 161 return false; 162 162 } … … function setUserSetting( name, value, _del ) { 188 188 return name; 189 189 } 190 190 191 function deleteUserSetting( name ) {191 window.deleteUserSetting = function( name ) { 192 192 return setUserSetting( name, '', 1 ); 193 193 } 194 194 195 195 // Returns all settings as js object. 196 function getAllUserSettings() {196 window.getAllUserSettings = function() { 197 197 if ( 'object' !== typeof userSettings ) { 198 198 return {}; 199 199 } -
src/js/_enqueues/lib/gallery.js
diff --git src/js/_enqueues/lib/gallery.js src/js/_enqueues/lib/gallery.js index 9a3453a..b572f9d 100644
jQuery(document).ready(function($) { 89 89 jQuery(window).unload( function () { tinymce = tinyMCE = wpgallery = null; } ); // Cleanup 90 90 91 91 /* gallery settings */ 92 var tinymce = null, tinyMCE, wpgallery;92 window.tinymce = null; 93 93 94 w pgallery = {94 window.wpgallery = { 95 95 mcemode : false, 96 96 editor : {}, 97 97 dom : {}, … … wpgallery = { 121 121 } 122 122 123 123 // Find window & API 124 tinymce = w.tinymce;125 tinyMCE = w.tinyMCE;124 window.tinymce = w.tinymce; 125 window.tinyMCE = w.tinyMCE; 126 126 t.editor = tinymce.EditorManager.activeEditor; 127 127 128 128 t.setup(); -
src/js/_enqueues/lib/link.js
diff --git src/js/_enqueues/lib/link.js src/js/_enqueues/lib/link.js index c4dd8e8..a5ad064 100644
1 1 /* @output wp-includes/js/wplink.js */ 2 2 3 var wpLink;4 5 3 ( function( $, wpLinkL10n, wp ) { 6 4 var editor, searchTimer, River, Query, correctedURL, linkNode, 7 5 emailRegexp = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i, … … var wpLink; 14 12 return linkNode || editor.dom.getParent( editor.selection.getNode(), 'a[href]' ); 15 13 } 16 14 17 w pLink = {15 window.wpLink = { 18 16 timeToTriggerRiver: 150, 19 17 minRiverAJAXDuration: 200, 20 18 riverBottomThreshold: 5, -
src/js/_enqueues/lib/nav-menu.js
diff --git src/js/_enqueues/lib/nav-menu.js src/js/_enqueues/lib/nav-menu.js index bccddc8..b22c45a 100644
11 11 12 12 /* global menus, postboxes, columns, isRtl, navMenuL10n, ajaxurl */ 13 13 14 /**15 * Contains all the functions to handle WordPress navigation menus administration.16 *17 * @namespace18 */19 var wpNavMenu;20 21 14 (function($) { 22 15 23 16 var api; 24 17 25 api = wpNavMenu = { 18 /** 19 * Contains all the functions to handle WordPress navigation menus administration. 20 * 21 * @namespace wpNavMenu 22 */ 23 api = window.wpNavMenu = { 26 24 27 25 options : { 28 26 menuItemDepthPerLevel : 30, // Do not use directly. Use depthToPx and pxToDepth instead. -
src/js/_enqueues/lib/quicktags.js
diff --git src/js/_enqueues/lib/quicktags.js src/js/_enqueues/lib/quicktags.js index 8906af1..96c4ade 100644
26 26 27 27 /* global adminpage, wpActiveEditor, quicktagsL10n, wpLink, prompt */ 28 28 29 var QTags, edCanvas, 30 edButtons = []; 29 window.edButtons = []; 31 30 32 31 /* jshint ignore:start */ 33 32 … … var QTags, edCanvas, 36 35 * 37 36 * Define all former global functions so plugins that hack quicktags.js directly don't cause fatal errors. 38 37 */ 39 varedAddTag = function(){},40 edCheckOpenTags = function(){},41 edCloseAllTags = function(){},42 edInsertImage = function(){},43 edInsertLink = function(){},44 edInsertTag = function(){},45 edLink = function(){},46 edQuickLink = function(){},47 edRemoveTag = function(){},48 edShowButton = function(){},49 edShowLinks = function(){},50 edSpell = function(){},51 edToolbar = function(){};38 window.edAddTag = function(){}, 39 window.edCheckOpenTags = function(){}, 40 window.edCloseAllTags = function(){}, 41 window.edInsertImage = function(){}, 42 window.edInsertLink = function(){}, 43 window.edInsertTag = function(){}, 44 window.edLink = function(){}, 45 window.edQuickLink = function(){}, 46 window.edRemoveTag = function(){}, 47 window.edShowButton = function(){}, 48 window.edShowLinks = function(){}, 49 window.edSpell = function(){}, 50 window.edToolbar = function(){}; 52 51 53 52 /** 54 53 * Initialize new instance of the Quicktags editor 55 54 */ 56 function quicktags(settings) {55 window.quicktags = function(settings) { 57 56 return new QTags(settings); 58 57 } 59 58 … … function quicktags(settings) { 63 62 * Added for back compatibility 64 63 * @see QTags.insertContent() 65 64 */ 66 function edInsertContent(bah, txt) {65 window.edInsertContent = function(bah, txt) { 67 66 return QTags.insertContent(txt); 68 67 } 69 68 … … function edInsertContent(bah, txt) { 73 72 * Added for back compatibility, use QTags.addButton() as it gives more flexibility like type of button, button placement, etc. 74 73 * @see QTags.addButton() 75 74 */ 76 function edButton(id, display, tagStart, tagEnd, access) {75 window.edButton = function(id, display, tagStart, tagEnd, access) { 77 76 return QTags.addButton( id, display, tagStart, tagEnd, access, '', -1 ); 78 77 } 79 78 … … function edButton(id, display, tagStart, tagEnd, access) { 156 155 })(), 157 156 qt; 158 157 159 qt = QTags = function(settings) {158 qt = window.QTags = function(settings) { 160 159 if ( typeof(settings) === 'string' ) { 161 160 settings = {id: settings}; 162 161 } else if ( typeof(settings) !== 'object' ) { … … function edButton(id, display, tagStart, tagEnd, access) { 180 179 181 180 if ( id === 'content' && typeof(adminpage) === 'string' && ( adminpage === 'post-new-php' || adminpage === 'post-php' ) ) { 182 181 // back compat hack :-( 183 edCanvas = canvas;182 window.edCanvas = canvas; 184 183 toolbar_id = 'ed_toolbar'; 185 184 } else { 186 185 toolbar_id = name + '_toolbar'; -
src/js/_enqueues/wp/dashboard.js
diff --git src/js/_enqueues/wp/dashboard.js src/js/_enqueues/wp/dashboard.js index bb1f8c5..e4266ba 100644
1 1 /* @output wp-admin/js/dashboard.js */ 2 2 3 3 /* global pagenow, ajaxurl, postboxes, wpActiveEditor:true */ 4 var ajaxWidgets, ajaxPopulateWidgets, quickPressLoad;5 4 window.wp = window.wp || {}; 6 5 7 6 /** … … jQuery(document).ready( function($) { 59 58 * 60 59 * @global 61 60 */ 62 ajaxWidgets = ['dashboard_primary'];61 window.ajaxWidgets = ['dashboard_primary']; 63 62 64 63 /** 65 64 * Triggers widget updates via AJAX. … … jQuery(document).ready( function($) { 72 71 * 73 72 * @returns {void} 74 73 */ 75 ajaxPopulateWidgets = function(el) {74 window.ajaxPopulateWidgets = function(el) { 76 75 /** 77 76 * Fetch the latest representation of the widget via Ajax and show it. 78 77 * … … jQuery(document).ready( function($) { 102 101 if ( el ) { 103 102 el = el.toString(); 104 103 // If the element is available as AJAX widget, show it. 105 if ( $.inArray(el, ajaxWidgets) !== -1 ) {104 if ( $.inArray(el, window.ajaxWidgets) !== -1 ) { 106 105 // Show element without any delay. 107 106 show(0, el); 108 107 } 109 108 } else { 110 109 // Walk through all ajaxWidgets, loading them after each other. 111 $.each( ajaxWidgets, show );110 $.each( window.ajaxWidgets, show ); 112 111 } 113 112 }; 114 113 115 114 // Initially populate ajax widgets. 116 ajaxPopulateWidgets();115 window.ajaxPopulateWidgets(); 117 116 118 117 // Register ajax widgets as postbox toggles. 119 postboxes.add_postbox_toggles(pagenow, { pbshow: ajaxPopulateWidgets } );118 postboxes.add_postbox_toggles(pagenow, { pbshow: window.ajaxPopulateWidgets } ); 120 119 121 120 /** 122 121 * Control the Quick Press (Quick Draft) widget. … … jQuery(document).ready( function($) { 127 126 * 128 127 * @returns {void} 129 128 */ 130 quickPressLoad = function() {129 window.quickPressLoad = function() { 131 130 var act = $('#quickpost-action'), t; 132 131 133 132 // Enable the submit buttons. … … jQuery(document).ready( function($) { 147 146 // Replace the form, and prepend the published post. 148 147 $('#dashboard_quick_press .inside').html( data ); 149 148 $('#quick-press').removeClass('initial-form'); 150 quickPressLoad();149 window.quickPressLoad(); 151 150 highlightLatestPost(); 152 151 153 152 // Focus the title to allow for quickly drafting another post. … … jQuery(document).ready( function($) { 208 207 209 208 autoResizeTextarea(); 210 209 }; 211 quickPressLoad();210 window.quickPressLoad(); 212 211 213 212 // Enable the dragging functionality of the widgets. 214 213 $( '.meta-box-sortables' ).sortable( 'option', 'containment', '#wpwrap' ); -
src/js/_enqueues/wp/password-strength-meter.js
diff --git src/js/_enqueues/wp/password-strength-meter.js src/js/_enqueues/wp/password-strength-meter.js index c9d2078..4ea5fbd 100644
3 3 /* global zxcvbn */ 4 4 window.wp = window.wp || {}; 5 5 6 var passwordStrength;7 6 (function($){ 8 7 9 8 /** … … var passwordStrength; 116 115 * 117 116 * @type {wp.passwordStrength.meter} 118 117 */ 119 passwordStrength = wp.passwordStrength.meter;118 window.passwordStrength = wp.passwordStrength.meter; 120 119 })(jQuery); -
src/js/_enqueues/wp/theme.js
diff --git src/js/_enqueues/wp/theme.js src/js/_enqueues/wp/theme.js index 3ded786..11837f4 100644
$( document ).ready(function() { 2039 2039 })( jQuery ); 2040 2040 2041 2041 // Align theme browser thickbox 2042 var tb_position;2043 2042 jQuery(document).ready( function($) { 2044 tb_position = function() {2043 window.tb_position = function() { 2045 2044 var tbWindow = $('#TB_window'), 2046 2045 width = $(window).width(), 2047 2046 H = $(window).height(),