-
Notifications
You must be signed in to change notification settings - Fork 4.8k
wpautop is applied to server-side rendered block output #2736
Copy link
Copy link
Closed
Labels
FrameworkIssues related to broader framework topics, especially as it relates to javascriptIssues related to broader framework topics, especially as it relates to javascript[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
While working on creating a block for the Jetpack subscription functionality, I stumbled upon an issue: if the output from the render_callback function contains inline JS (like this), wpautop will add paragraphs to the JS code so it won't work:
If I return early from wpautop, no <p>s are added.
#gutenbug
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrameworkIssues related to broader framework topics, especially as it relates to javascriptIssues related to broader framework topics, especially as it relates to javascript[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.
