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

REST Block Renderer: Attributes registered using blocks.registerBlockType filter fails. #15935

Closed
phpbits opened this issue May 31, 2019 · 2 comments
Labels
[Feature] Block API API that allows to express the block paradigm. REST API Interaction Related to REST API [Status] Needs More Info Follow-up required in order to be actionable. [Type] Bug An existing feature does not function as intended

Comments

@phpbits
Copy link
Contributor

phpbits commented May 31, 2019

Same issue with this one : #13249 but not only fo className. All attributes registered using blocks.registerBlockType returns invalid on REST block renderer.

{"code":"rest_invalid_param","message":"Invalid parameter(s): attributes","data":{"status":400,"params":{"attributes":"className is not a valid property of Object."}}}

@swissspidy swissspidy added [Feature] Block API API that allows to express the block paradigm. REST API Interaction Related to REST API labels May 31, 2019
@phpbits
Copy link
Contributor Author

phpbits commented Jun 11, 2019

#15450

@jordesign jordesign added [Type] Bug An existing feature does not function as intended [Status] Needs More Info Follow-up required in order to be actionable. labels Aug 4, 2023
@talldan
Copy link
Contributor

talldan commented Jul 24, 2024

I don't think this is a bug, I expect the reason for this is that the attributes added via registerBlockType haven't been registered on the server, so ServerSideRender has no knowledge of them.

Registering the attributes server side as well (I think the block_type_metadata filter might be a candidate) should resolve the issue.

It's quite an old issue so I'll close it, if there's any further feedback though I can always reopen.

@talldan talldan closed this as not planned Won't fix, can't repro, duplicate, stale Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block API API that allows to express the block paradigm. REST API Interaction Related to REST API [Status] Needs More Info Follow-up required in order to be actionable. [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants