Skip to content

Conversation

aduth
Copy link
Member

@aduth aduth commented Sep 11, 2018

This should be included in a final 3.8 release.

Fixes #9791
Related: #8083

This pull request seeks to resolve an issue where the new PHP parser introduced in #8083 was not included in the plugin distributable.

Testing instructions:

Run npm run package-plugin. Ensure that the generated ZIP includes packages/block-serialization-default-parser/parser.php.

Verify there are no other non-included PHP files contained in packages:

find packages -type f -name "*.php"

@aduth aduth added [Type] Bug An existing feature does not function as intended [Type] Build Tooling Issues or PRs related to build tooling labels Sep 11, 2018
@aduth aduth added this to the 3.8 milestone Sep 11, 2018
@mcsf
Copy link
Contributor

mcsf commented Sep 11, 2018

Many thanks for jumping on this so quickly.

Copy link
Contributor

@mcsf mcsf left a comment

Choose a reason for hiding this comment

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

Can confirm that the built plugin works when interacting with a third-party plugin which calls the PHP parser, whereas it didn't before.

@aduth aduth merged commit 5febf46 into master Sep 11, 2018
@aduth aduth deleted the fix/9791-build-include-parser-php branch September 11, 2018 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended [Type] Build Tooling Issues or PRs related to build tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The WP_Block_Parser class can't be loaded in the gutenberg_parse_blocks() function
2 participants