Skip to content

Commit

Permalink
Removed unused arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Sep 17, 2024
1 parent 4bc2ad8 commit a309123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-6.7/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function gutenberg_override_default_rest_server() {
*
* @return WP_REST_Response The API root index data.
*/
function gutenberg_add_language_direction_to_site_capabilities( $response, $request ) {
function gutenberg_add_language_direction_to_site_capabilities( $response ) {
/*
* Locale settings.
*
Expand Down Expand Up @@ -155,4 +155,4 @@ function gutenberg_add_language_direction_to_site_capabilities( $response, $requ
return $response;
}

add_filter( 'rest_index', 'gutenberg_add_language_direction_to_site_capabilities', 10, 2 );
add_filter( 'rest_index', 'gutenberg_add_language_direction_to_site_capabilities', 10, 1 );

0 comments on commit a309123

Please sign in to comment.