-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Backporting block supports filter callback and registrations and tests #3273
Backporting block supports filter callback and registrations and tests #3273
Conversation
src/wp-includes/script-loader.php
Outdated
$style_tag_id = 'core'; | ||
foreach ( $core_styles_keys as $style_key ) { | ||
// Adds comment if code is prettified to identify core styles sections in debugging. | ||
$should_prettify = isset( $options['prettify'] ) ? true === $options['prettify'] : defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could consider moving this line before of the loop. (Not a blocker ofc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed @ockham. While not a blocker, it's a quick change that could be made in the PR or prior to commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ramonjd! LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor thought but other than that, LGTM! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I committed the two proposed changes.
Committed in https://core.trac.wordpress.org/changeset/54214 |
🎼 So much, So much clean 🎶
This is combination of of @ockham's changes in #3259, which is a fork of @ramonjd's #3218.
The purpose here is to
SCRIPT_DEBUG
in tests. See comment and the Gutenberg PRProps to @gziolo and @ockham
Trac ticket: https://core.trac.wordpress.org/ticket/56467
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.