Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#58386 new defect (bug)

Shortcode generated by a block element is not executed in templates

Reported by: rbrunskill's profile rbrunskill Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.2.2
Component: Shortcodes Keywords: needs-patch
Focuses: Cc:

Description

Gravity Forms has a block element that inserts the final content by injecting shortcode into the page.

Since 6.2.1 (including 6.2.2) this shortcode does not execute when the Gravity Forms block is added to any sort of template.

Attachments (1)

wp622-gf.png (105.0 KB) - added by rbrunskill 12 months ago.
Two uses of the Gravity Forms block in the same page, but one in the content of the page, and the other via the footer template.

Download all attachments as: .zip

Change History (5)

@rbrunskill
12 months ago

Two uses of the Gravity Forms block in the same page, but one in the content of the page, and the other via the footer template.

#1 @sinclairbenj
12 months ago

I am also having this issue on my site (gallery263.org) with a Gravity forms form inside a template part.

#2 follow-up: @Clorith
12 months ago

In the case of Gravity Forms, they released an update yesterday that fixes this in their plugin.

The root issue are "blocks" outputting raw shortcode text, and not calling the do_shortcode() function on it them selves, this results in plain text being the end result.

#3 in reply to: ↑ 2 @rbrunskill
12 months ago

Replying to Clorith:

In the case of Gravity Forms, they released an update yesterday that fixes this in their plugin.

The root issue are "blocks" outputting raw shortcode text, and not calling the do_shortcode() function on it them selves, this results in plain text being the end result.

Just installed that patch and it resolves the issue.

#4 @brumack
12 months ago

direct cause is from Changeset 55832. shortcode support for block templates was restored, but to a different position. not sure what the reason for that was.

Note: See TracTickets for help on using tickets.