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:
Sergey Biryukov 2020-01-02 12:09:27 +00:00
parent 83defdf556
commit 10d4ad91b0
1 changed files with 3 additions and 3 deletions

View File

@ -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 );