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

Gutenberg: Fix plugin name of Publicize #26726

Merged
merged 1 commit into from
Aug 16, 2018
Merged

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Aug 16, 2018

Seems like in #26662 we didn't account for the fact that Gutenberg has some limitations on the plugin names. When we have a slash in the plugin name, we'll see the following error:

This PR resolves that.

To test:
Follow the instructions #26603, which contains this PR. Verify you can no longer see the error when you load your Gutenberg editor.

@tyxla tyxla added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Project] SDK labels Aug 16, 2018
@matticbot
Copy link
Contributor

@simison
Copy link
Member

simison commented Aug 16, 2018

Hmm, right, difference between registerPlugin and registerBlockType. My bad!

@tyxla
Copy link
Member Author

tyxla commented Aug 16, 2018

Hmm, right, difference between registerPlugin and registerBlockType. My bad!

Not your bad at all - it was me who suggested it initially 😉 #26662 (comment)

Copy link
Member

@simison simison left a comment

Choose a reason for hiding this comment

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

Change tests well, tested via #26603 (review)

@tyxla tyxla merged commit fc9795f into master Aug 16, 2018
@tyxla tyxla deleted the sdk/fix-publicize-plugin-name branch August 16, 2018 14:08
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 16, 2018
@dmsnell
Copy link
Member

dmsnell commented Aug 17, 2018

Is this something we think is worth flagging as an issue with the upstream project? Why wouldn't plugins have a namespace?

@tyxla
Copy link
Member Author

tyxla commented Aug 17, 2018

WP plugins don't have namespaces, so I expect Gutenberg plugins would keep consistency with that. But it's also possible that this hasn't been considered, so I've opened an issue to discuss it: WordPress/gutenberg#9080

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.

4 participants