Skip to content

Commit

Permalink
Use static
Browse files Browse the repository at this point in the history
Co-authored-by: Jonny Harris <[email protected]>
  • Loading branch information
getdave and spacedmonkey authored Dec 18, 2024
1 parent b86dc0d commit dca2262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function gutenberg_register_archive_link_field() {
'type',
'archive_link',
array(
'get_callback' => function ( $post_object ) {
'get_callback' => static function ( $post_object ) {
return (string) get_post_type_archive_link( $post_object['slug'] )
},
'update_callback' => null,
Expand Down

0 comments on commit dca2262

Please sign in to comment.