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

Remove the plugin header nested inside the editor toolkit #44601

Merged
merged 1 commit into from
Aug 3, 2020

Conversation

p-jackson
Copy link
Member

@p-jackson p-jackson commented Aug 3, 2020

When activating the 1.15 build of the editing toolkit, WordPress displays a "The plugin nodes not have a valid header" error.

Changes proposed in this Pull Request

  • Remove the plugin header from /premium-content/premium-content.php because it is not a plugin.

It appears that Premium Content began development as a seperate plugin, but then before shipping it was rolled in to full-site-editing. When WordPress scans plugins it finds this plugin header and the real one in full-site-editing-plugin.php. Up until now this hasn't been a problem because "Full Site Editing" comes before "Premium Content" in the alphabet.

The plugin was renamed in #44499 to "WordPress.com Editing Toolkit". "Premium Content" comes first alphabetically so WordPress tries to use it during plugin activation.

It looks like the plugin header in /premium-content/premium-content.php was only ever used during development so it should be safe to remove.

Testing instructions

  • Install and activate the 1.15 build of the editing toolkit on a stand alone site to reproduce the issue (go to Bump WordPress.com Editing Toolkit version to 1.15 #44509 and download the build artifact for the "Editing Toolkit Plugin / Build plugin (pull_request)" job)
  • Install and activate this build of the editing toolkit on a stand alone confirm the bug is fixed (download the build artifact for the "Editing Toolkit Plugin / Build plugin (pull_request)" job from this PR)

@p-jackson p-jackson self-assigned this Aug 3, 2020
@matticbot
Copy link
Contributor

@p-jackson p-jackson requested review from a team August 3, 2020 06:01
@matticbot matticbot added the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 3, 2020
@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

@matticbot
Copy link
Contributor

Caution: This PR affects files in the Editing Toolkit Plugin on WordPress.com
Please ensure your changes work on WordPress.com before merging.

D47453-code has been created so you can easily test it on your sandbox. See this FieldGuide page about developing the Editing Toolkit Plugin for more info: PCYsg-ly5-p2

@p-jackson p-jackson merged commit a0f42d9 into master Aug 3, 2020
@p-jackson p-jackson deleted the remove/premium-content-plugin-header branch August 3, 2020 21:06
@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 3, 2020
@p-jackson
Copy link
Member Author

p-jackson commented Aug 3, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants