Make WordPress Core

Opened 7 months ago

Last modified 3 months ago

#61007 new defect (bug)

Shortcode aren't paste inline in paragraphs

Reported by: soivigol's profile soivigol Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 6.5
Component: Shortcodes Keywords:
Focuses: Cc:

Description (last modified by sabernhardt)

After updating to 6.5 WordPress version, when I go to paste a shortcode from the clipboard to a paragraph or other editable component, the shortcode opens a new block, but doesn't allow paste inline as before.

Here's a GIF
pasting shortcode in Paragraph block

Attachments (1)

shortcodes-inline.gif (209.5 KB) - added by soivigol 7 months ago.

Download all attachments as: .zip

Change History (9)

#1 @sabernhardt
7 months ago

#61006 was marked as a duplicate.

#2 @sabernhardt
7 months ago

  • Description modified (diff)

#3 @soivigol
7 months ago

Additional information: @carloslongarela and I were tested on several installations and in some installations we had this problem, but in others not. We don't have common plugins or themes, where there is the problem. Ones are created with the Block Editor and other ones with Classic themes. Servers, languages and other configurations are different. We don't see any external resource that could cause it.
We tested in WordPress Playground, with different PHP versions, and we had the same error too.

This ticket was mentioned in Slack in #core-editor by soivigol. View the logs.


5 months ago

#5 @vreemt
4 months ago

having a similar issue, cross-linking https://github.com/WordPress/gutenberg/issues/60564#issuecomment-2205904038

my testing suggests the "source" when copying mattered - if i pasted [bracket] i am generic text [/bracket] from an unformatted source, it got converted, but when pasting from eg a word document or rendered on a page, it displayed as text

[bracket] i am generic text bracket

it also looks like html ([code]Hello <em>world</em>[/code]) can cause it to be converted to a shortcode block

Last edited 4 months ago by vreemt (previous) (diff)

#6 @GuerillaDesigns
3 months ago

I'm definately still getting this issue. Any time I past a shortcode anywhere it auto creates a shortcode block. I have a mostly automated system of delivery that this change breaks 100%..The only way I'm able to add a shortcode is by typing it in manually. I'm running WP 6.6.1.

#7 @GuerillaDesigns
3 months ago

Hey, I built an override for this that I use in my theme, here's a mini repo with that patch.
https://github.com/schlotterer/shortcode-filter

here's my theme:
https://github.com/schlotterer/flexline

Last edited 3 months ago by GuerillaDesigns (previous) (diff)
Note: See TracTickets for help on using tickets.