Make WordPress Core

Opened 16 months ago

Last modified 16 months ago

#58013 new defect (bug)

Copy URL To Clipboard Fails After 1 Use

Reported by: colewebdev's profile colewebdev Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.1.1
Component: Media Keywords: reporter-feedback
Focuses: Cc:


When editing a post/page, I click to insert media, click "Copy URL to clipboard" on any media in the Library modal and paste into my page (or outside of WP into Notepad etc.)

Then, without saving or refreshing repeat the process (insert media, copy url to clipboard) and on the second and subsequent pastes it fails and re-pastes only the first link

I've seen this behavior on 12+ sites, using different themes, all running the current WP - I see this behavior both in Chrome, and Firefox

Change History (7)

This ticket was mentioned in Slack in #core by colewebdev. View the logs.

16 months ago

#2 @Presskopp
16 months ago

I cannot reproduce this. Sorry for the question, but did you try different devices?

#3 @colewebdev
16 months ago

Yes I've tried on multiple devices, browsers and websites.

Here are more details steps to reproduce:

  1. Create or edit an existing page/post.
  2. Click to insert an image module.
  3. Click: Select Image>Media Library
  4. In the modal, select a Library Media item and click "Copy URL to clipboard"
  5. Paste URL into Notepad (or equivalent)
  6. In the still open WordPress Library modal, click another Library Media item and click "Copy URL to clipboard"
  7. Paste URL into Notepad (or equivalent)
  8. The first URL will paste, not the second.

#4 @Presskopp
16 months ago

Thank you for the details. Still it's working for me.
What PHP version are you on?

Last edited 16 months ago by Presskopp (previous) (diff)

#5 @costdev
16 months ago

  • Keywords reporter-feedback added

I cannot reproduce either. The first attempt pastes the first URL. The second attempt pastes the second URL.

@colewebdev Are there any console errors in your browser's devtools?

#6 @kelvinballoo
16 months ago

Yup, can't reproduce this too. I tried to follow the steps to the T but in vain.
Mine was tested on 2023 theme.

@colewebdev , any chance you could provide more details on your environment, PHP version, browser version, theme, laptop OS version, etc...?

This could help to narrow down to the scenario.

This ticket was mentioned in Slack in #core-media by antpb. View the logs.

16 months ago

Note: See TracTickets for help on using tickets.