Skip to content

Plugin: Move wp_enqueue_block_view_script to experiments - #44414

Merged
gziolo merged 1 commit into
trunkfrom
update/move-function-to-experiments
Sep 23, 2022
Merged

gziolo merged 1 commit into
trunkfrom
update/move-function-to-experiments

Conversation

@gziolo

@gziolo gziolo commented Sep 23, 2022

Copy link
Copy Markdown
Member

What?

Related to #43440.

We decided against including the following function in WordPress 6.1:

function wp_enqueue_block_view_script( $block_name, $args ) {

This PR moves its definition to lib/experimental until we have a more pressing need to include it in WordPress core.

@gziolo gziolo self-assigned this Sep 23, 2022
@gziolo gziolo added Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Code Quality Issues or PRs that relate to code quality labels Sep 23, 2022

@aristath aristath left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me! As previously discussed on Slack, moving this makes perfect sense at this point 👍

@gziolo
gziolo merged commit 4a61eb8 into trunk Sep 23, 2022
@gziolo
gziolo deleted the update/move-function-to-experiments branch September 23, 2022 09:11
@github-actions github-actions Bot added this to the Gutenberg 14.3 milestone Sep 23, 2022
@ramonjd ramonjd added the Needs PHP backport Needs PHP backport to Core label Jun 5, 2023
@ramonjd ramonjd removed the Needs PHP backport Needs PHP backport to Core label Jun 30, 2023
@kimmenbert

Copy link
Copy Markdown

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.

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

Labels

Gutenberg Plugin Issues or PRs related to Gutenberg Plugin management related efforts [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants