Skip to content

Commit

Permalink
Fix error in rest field registration syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
getdave committed Dec 18, 2024
1 parent 59d06e0 commit 5d6da1a
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 @@ -44,7 +44,7 @@ function gutenberg_register_archive_link_field() {
'archive_link',
array(
'get_callback' => static function ( $post_object ) {
return (string) get_post_type_archive_link( $post_object['slug'] )
return (string) get_post_type_archive_link( $post_object['slug'] );
},
'update_callback' => null,
'schema' => array(
Expand Down

0 comments on commit 5d6da1a

Please sign in to comment.