Skip to content

Commit

Permalink
Remove obsolete filter arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Nov 19, 2024
1 parent 9f985a7 commit ef8ef09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-6.8/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function gutenberg_add_post_type_rendering_mode() {
*
* @return array The updated taxonomy registration arguments.
*/
function gutenberg_override_terms_controller_6_8( $args, $taxonomy ) {
function gutenberg_override_terms_controller_6_8( $args ) {
if ( empty( $args['show_in_rest'] ) ) {
return $args;
}
Expand All @@ -38,4 +38,4 @@ function gutenberg_override_terms_controller_6_8( $args, $taxonomy ) {
$args['rest_controller_class'] = Gutenberg_REST_Terms_Controller_6_8::class;
return $args;
}
add_filter( 'register_taxonomy_args', 'gutenberg_override_terms_controller_6_8', 10, 2 );
add_filter( 'register_taxonomy_args', 'gutenberg_override_terms_controller_6_8', 10 );

0 comments on commit ef8ef09

Please sign in to comment.