Repository navigation
Plugin: Move wp_enqueue_block_view_script to experiments - #44414
Merged
Merged
Conversation
gziolo
requested review from
aristath,
cbravobernal,
michalczaplinski and
ockham
September 23, 2022 08:39
27 of 37 tasks
aristath
approved these changes
Sep 23, 2022
aristath
left a comment
Member
There was a problem hiding this comment.
Looks good to me! As previously discussed on Slack, moving this makes perfect sense at this point 👍
|
Any plans to push this into WP Core any time soon? Or is there some alternative approach now to enqueue scripts for singular block types depending if they are in use or not. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Related to #43440.
We decided against including the following function in WordPress 6.1:
gutenberg/lib/compat/wordpress-6.1/blocks.php
Line 119 in b3c665e
This PR moves its definition to
lib/experimentaluntil we have a more pressing need to include it in WordPress core.