[wp-trac] [WordPress Trac] #56515: Uncaught TypeError: clipboard.clipboardAction is undefined
WordPress Trac
noreply at wordpress.org
Tue Sep 6 22:03:37 UTC 2022
#56515: Uncaught TypeError: clipboard.clipboardAction is undefined
----------------------------------------+-------------------------
Reporter: hiren1094 | Owner: Clorith
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.0.3
Component: Site Health | Version: 6.0
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info | Focuses: javascript
----------------------------------------+-------------------------
Changes (by Clorith):
* owner: (none) => Clorith
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"54089" 54089]:
{{{
#!CommitTicketReference repository="" revision="54089"
Site Health: Fix TypeError when copying debug information.
In [53164] the `clipboard.js` library was updated to from version 2.0.8 to
2.0.10, and in doing so caused a TypeError JavaScript error to be thrown
when the copy button for debug information was used.
With the update, the `clipboard.js` library introduced an enhancement to
its `.copy()` API, which now removes the fake DOM element used for copying
content, which Site Health previously had to remove manually.
As this fake DOM element is now removed automatically, the copy function
within the debug information screen can rely on the library performing the
removal, instead of WordPress needing to do so manually.
Props hiren1094, costdev.
Fixes #56515.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56515#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list