Conversation
supportHi! I’m running into issues with this plugin and blocks that use the serverSideRender component. Because you’re registering attributes onto all blocks using JS, those blocks that aren’t expecting an attribute throw a 400 when trying to generate markup over REST: { "code": "rest_invalid_param", "message": "Invalid parameter(s): attributes", "data": { "status": 400, "params": { "attributes": "hideEl is not a valid property of Object." }, "details": { "attributes": { "code": "rest_additional_properties_forbidden", "message": "hideEl is not a valid property of Object.", "data": null } } } } I believe if you move the attribute registration over to the PHP side, this won’t happen any more.
Hi @tommusrhodus thank you for reporting this. A feature was recently added that enables animation options on all blocks. You can disable it globally by going to Settings -> Animated Blocks and turning off “Show animation controls on all blocks”. Could you try that for now and use only the Animation block until I inspect the issue and release a fix?
Thank you for a quick reply! I have a patch in place for now: function extra_block_type_metadata( $metadata ) { if ( empty( $metadata['name'] ) ) { return $metadata; } if ( str_starts_with( $metadata['name'], 'block-namespace/' ) ) { $metadata['attributes']['hideEl'] = false; } return $metadata; } add_filter( 'block_type_metadata', 'extra_block_type_metadata', 10 );
Hi @tommusrhodus ! This was resolved in the latest version. Please update and let me know if you encounter any other issues.
Hi @tommusrhodus thank you for reporting this. A feature was recently added that enables animation options on all blocks. You can disable it globally by going to Settings -> Animated Blocks and turning off “Show animation controls on all blocks”. Could you try that for now and use only the Animation block until I inspect the issue and release a fix?
Thank you for a quick reply! I have a patch in place for now: function extra_block_type_metadata( $metadata ) { if ( empty( $metadata['name'] ) ) { return $metadata; } if ( str_starts_with( $metadata['name'], 'block-namespace/' ) ) { $metadata['attributes']['hideEl'] = false; } return $metadata; } add_filter( 'block_type_metadata', 'extra_block_type_metadata', 10 );
Hi @tommusrhodus ! This was resolved in the latest version. Please update and let me know if you encounter any other issues.