From 5d6da1a166d7124cb871445eb86a6cb4f616e44a Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Wed, 18 Dec 2024 09:04:31 +0000 Subject: [PATCH] Fix error in rest field registration syntax --- lib/rest-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rest-api.php b/lib/rest-api.php index a85b6c7eaa56c..f79724492132c 100644 --- a/lib/rest-api.php +++ b/lib/rest-api.php @@ -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(