WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.52k stars 4.21k forks source link

do not open image from post when I click on it #28750

Closed RafalSzrajnert closed 3 years ago

RafalSzrajnert commented 3 years ago

Description

long version on wp forum: https://wordpress.org/support/topic/do-not-open-image-from-post-when-i-click-on-it/,

but here I try to make it short. after update to 5.6 in december I have automatic hyperlink added to my posts when I choose "image" youtube short vid from my phone, you can see there is already link: https://youtu.be/rrehRidHd3Q

example of blog post: https://uniqueseo.pl/co-to-jest-blog/

It is adding hyperlink only to new posts, did not applied it to older ones

and hyperlink is added only in "image"

when I add for example "media and text" there is no link automatically added, which is correct behaviour, because using "image" I have to delete every link, and I use photos a lot

Step-by-step reproduction instructions

I have been advised to try old editor and when I delete link it remembers last action, which is correct and next photos have no "a href" after upload,

but when I swith back to new editor lik is added everytime

so i switched my theme to default WP theme, and switched off all plugins but...

it did not help!

what helped was when I downloaded this plugin https://pl.wordpress.org/plugins/wp-downgrade/ and went back to 5.5.3 version and problem dissapeared!

Expected behaviour

no automatically inserted hyperlink when i add "image"

Actual behaviour

adding hyperlink to image every time, then I have to delete it on every photo i use in blog post

Screenshots or screen recording (optional)

I already pastet this youtube from phone https://youtu.be/rrehRidHd3Q no need for better quality I think, just to show that is is added automatically

Code snippet (optional)

WordPress information

Device information

last thing, maybe I just pasted long time ago some code to my wordpress php or something that now is affecting this? but I doubt. I know other people do not have this problem but as I said I switched all plugins and theme and problem still persisted. If you will need some code from me or access just let me know.

and suggestion from WP moderator: But it may not get much traction if the issue cannot be reproduced by others. It might make more sense to frame it as an enhancement where whatever option was used last is the default behavior.

paaljoachim commented 3 years ago

Hi @RafalSzrajnert

I am testing. Using a local site running the theme: Twenty Twenty One.
WordPress: 5.6.1 Gutenberg plugin 9.8.4 and no other plugins activated. I also deactivated the Gutenberg plugin and had no plugins activated. Testing in Chrome.

  1. Creating a new post.
  2. Adding the Image block.
  3. Adding an image from the Media Library.
  4. Clicked the link icon.
  5. I could not see any included link.

See the above test instructions I wrote. It would be great if you can do something similar. Deactivate all plugins except Gutenberg. Switch to a default theme such as Twenty Twenty One. Then see if the link is still present after adding an image.

RafalSzrajnert commented 3 years ago

@paaljoachim I did it yesterday with 5.6 now I am on 5.6.1 and problem persist. But tomorrow I try as you said with 5.6.1 and I will let you know

RafalSzrajnert commented 3 years ago

@paaljoachim nothing has changed: https://youtu.be/uY4AVHpOfdY all plugins switched off, only gutenberg left plus default theme 2021

paaljoachim commented 3 years ago

Thank you for sharing @RafalSzrajnert I am still not able to reproduce. Kerry @gwwar could you take a look?

gwwar commented 3 years ago

I'm afraid I can't reproduce this one on 5.6.1 WP (with the gutenberg plugin disabled) or in more recent versions.

Screen Shot 2021-03-22 at 12 03 01 PM
annezazu commented 3 years ago

With two people unable to reproduce this and no further reports, I'm going to go ahead and close this out! @RafalSzrajnert if you can provide additional steps or information, those of us interacting on this issue can re-open and try once more to replicate. Thanks so much.