Skip to content
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

fix: wrong number of $accepted_args on add_filter() calls #66694

Merged
merged 2 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/block-supports/block-style-variations.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function gutenberg_enqueue_block_style_variation_styles() {
}

// Add Gutenberg filters and action.
add_filter( 'render_block_data', 'gutenberg_render_block_style_variation_support_styles', 10, 2 );
add_filter( 'render_block_data', 'gutenberg_render_block_style_variation_support_styles', 10, 1 );
gziolo marked this conversation as resolved.
Show resolved Hide resolved
add_filter( 'render_block', 'gutenberg_render_block_style_variation_class_name', 10, 2 );
add_action( 'wp_enqueue_scripts', 'gutenberg_enqueue_block_style_variation_styles', 1 );

Expand Down
2 changes: 1 addition & 1 deletion lib/experimental/kses-allowed-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ function gutenberg_kses_allowed_html( $allowedtags ) {
);
return $allowedtags;
}
add_filter( 'wp_kses_allowed_html', 'gutenberg_kses_allowed_html', 10, 2 );
add_filter( 'wp_kses_allowed_html', 'gutenberg_kses_allowed_html', 10, 1 );
2 changes: 1 addition & 1 deletion lib/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function gutenberg_override_global_styles_endpoint( array $args ): array {

return $args;
}
add_filter( 'register_wp_global_styles_post_type_args', 'gutenberg_override_global_styles_endpoint', 10, 2 );
add_filter( 'register_wp_global_styles_post_type_args', 'gutenberg_override_global_styles_endpoint', 10, 1 );

/**
* Registers the Edit Site Export REST API routes.
Expand Down
Loading