Site Health: Fix typo in a variable name in js/_enqueues/admin/site-health.js
.
Props nickylimjj. Fixes #49112. git-svn-id: https://develop.svn.wordpress.org/trunk@47031 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
83defdf556
commit
10d4ad91b0
@ -282,17 +282,17 @@ jQuery( document ).ready( function( $ ) {
|
||||
|
||||
function updateDirSizes( data ) {
|
||||
var copyButton = $( 'button.button.copy-button' );
|
||||
var clipdoardText = copyButton.attr( 'data-clipboard-text' );
|
||||
var clipboardText = copyButton.attr( 'data-clipboard-text' );
|
||||
|
||||
$.each( data, function( name, value ) {
|
||||
var text = value.debug || value.size;
|
||||
|
||||
if ( typeof text !== 'undefined' ) {
|
||||
clipdoardText = clipdoardText.replace( name + ': loading...', name + ': ' + text );
|
||||
clipboardText = clipboardText.replace( name + ': loading...', name + ': ' + text );
|
||||
}
|
||||
} );
|
||||
|
||||
copyButton.attr( 'data-clipboard-text', clipdoardText );
|
||||
copyButton.attr( 'data-clipboard-text', clipboardText );
|
||||
|
||||
pathsSizesSection.find( 'td[class]' ).each( function( i, element ) {
|
||||
var td = $( element );
|
||||
|
Loading…
x
Reference in New Issue
Block a user