Skip to content

Fix Block Bindings source label was overridden warning #564

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

Merged
merged 1 commit into from
May 30, 2025

Conversation

ingeniumed
Copy link
Contributor

Description

Currently, there is a warning being spat out by the plugin every time a post is loaded in the editor that looks as follows:

CleanShot 2025-05-30 at 13 30 27

This is because our label is different between the PHP and TS code. So I've united this to be Remote Data Blocks just like it is on the PHP code.

@ingeniumed ingeniumed requested a review from a team as a code owner May 30, 2025 03:32
@ingeniumed ingeniumed requested review from chriszarate and removed request for a team May 30, 2025 03:32
@@ -2,7 +2,7 @@ import { registerBlockBindingsSource } from '@wordpress/blocks';

registerBlockBindingsSource( {
name: 'remote-data/binding',
label: 'Remote Data Binding',
label: 'Remote Data Blocks',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't mind changing the PHP code instead of Remote Data Binding, but feel like Remote Data Blocks will make more sense to someone than Remote Data Bindings as they know the plugin.

@ingeniumed ingeniumed self-assigned this May 30, 2025
Copy link
Contributor

Test this PR in WordPress Playground.

Copy link
Member

@chriszarate chriszarate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, I thought this was because of our merged attributes.

@chriszarate chriszarate merged commit b6ed1fe into trunk May 30, 2025
13 checks passed
@chriszarate chriszarate deleted the update/bug-fix branch May 30, 2025 16:25
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

Successfully merging this pull request may close these issues.

2 participants