Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content attribute is not returned for the core/paragraph block #206

Closed
sathyapulse opened this issue Jun 4, 2024 · 2 comments
Closed

content attribute is not returned for the core/paragraph block #206

sathyapulse opened this issue Jun 4, 2024 · 2 comments

Comments

@sathyapulse
Copy link

The content attribute field is not being returned for the core/paragraph block.

The Gutenberg plugin 17.3 merged the PR #43204, which changed the type and source attribute values from string => rich-text and html => rich-text, respectively, for the core paragraph block. As a result, the wp-graphql-gutenberg plugin fails to identify/parse the content attribute from the paragraph block.

The content attribute type doesn't have a matching case for rich-text here, and it was identified as string earlier. Also, the content attribute source doesn't have a matching case for rich-text here, and it was identified as html earlier. The wp-graphql-gutenberg plugin should patch those to fix the issue.

As I mentioned, the change was made in the Gutenberg 17.3 release, which was shipped with the WordPress 6.5 release.

@kuuak
Copy link
Contributor

kuuak commented Jul 19, 2024

I encountered the same issue. A PR #203 has however been proposed

@sathyapulse
Copy link
Author

The PR #203 has been merged. I'm closing the issue. Thanks.

kuuak added a commit to superhuit-agency/superstack that referenced this issue Jul 26, 2024
This upgrade fixes the missing `content` property in the core/paragraph block.
See pristas-peter/wp-graphql-gutenberg#206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants