-
Notifications
You must be signed in to change notification settings - Fork 385
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 WP_DEBUG from local-env till WP 6.3 is released #7591
Changes from all commits
419f8e5
d6553a3
bb6cf33
dd4e9ac
a9338e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,14 @@ class AMP_Core_Block_Handler extends AMP_Base_Embed_Handler { | |
* Register embed. | ||
*/ | ||
public function register_embed() { | ||
/* | ||
* Disable interactivity API on core/navigation block. | ||
* Currently this support is added by Gutenberg plugin, but it will be a part of WP 6.3 as well. | ||
* | ||
* @TODO: Need to revisit once Interactivity API is landed in WP Core. | ||
*/ | ||
add_filter( 'gutenberg_should_block_use_interactivity_api', '__return_false' ); | ||
Comment on lines
+69
to
+75
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this is added here, then the inverse should be done in Nevertheless, the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Do we need interactivity API enabled on any block in our case? Since this API will be added in more blocks and those modifications could be problematic, I believe we should keep it disabled for all blocks. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good |
||
|
||
add_filter( 'render_block', [ $this, 'filter_rendered_block' ], 0, 2 ); | ||
add_filter( 'widget_text_content', [ $this, 'preserve_widget_text_element_dimensions' ], PHP_INT_MAX ); | ||
} | ||
|
@@ -74,6 +82,7 @@ public function register_embed() { | |
* Unregister embed. | ||
*/ | ||
public function unregister_embed() { | ||
remove_filter( 'gutenberg_should_block_use_interactivity_api', '__return_false' ); | ||
remove_filter( 'render_block', [ $this, 'filter_rendered_block' ], 0 ); | ||
remove_filter( 'widget_text_content', [ $this, 'preserve_widget_text_element_dimensions' ], PHP_INT_MAX ); | ||
} | ||
|
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.
While not critical since this is temporary, the
wp plugin install
command also allows you to pass a URL to a ZIP file. So this could have been done instead of modifyingstart.sh
: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.
I tried it but it was adding a suffix in the plugin name something like
gutenberg-Ad5fe
and it was problematic.