diff --git a/lib/compat/wordpress-6.6/post.php b/lib/compat/wordpress-6.6/post.php index 857ac6fc7d9ed0..8415f3bf42f18f 100644 --- a/lib/compat/wordpress-6.6/post.php +++ b/lib/compat/wordpress-6.6/post.php @@ -11,6 +11,7 @@ function gutenberg_add_excerpt_support_to_wp_block() { add_post_type_support( 'wp_block', 'excerpt' ); } + add_action( 'init', 'gutenberg_add_excerpt_support_to_wp_block' ); /** diff --git a/lib/compat/wordpress-6.6/rest-api.php b/lib/compat/wordpress-6.6/rest-api.php index 6d2b2eda00732f..eadd3b1d376a72 100644 --- a/lib/compat/wordpress-6.6/rest-api.php +++ b/lib/compat/wordpress-6.6/rest-api.php @@ -77,6 +77,7 @@ function gutenberg_add_class_list_to_public_post_types() { } add_action( 'rest_api_init', 'gutenberg_add_class_list_to_public_post_types' ); + /** * Registers the Global Styles Revisions REST API routes. */ diff --git a/lib/compat/wordpress-6.8/class-gutenberg-rest-post-types-controller-6-8.php b/lib/compat/wordpress-6.8/class-gutenberg-rest-post-types-controller-6-8.php index a596bc085694dd..da0489210e21f1 100644 --- a/lib/compat/wordpress-6.8/class-gutenberg-rest-post-types-controller-6-8.php +++ b/lib/compat/wordpress-6.8/class-gutenberg-rest-post-types-controller-6-8.php @@ -15,8 +15,8 @@ class Gutenberg_REST_Post_Types_Controller_6_8 extends WP_REST_Post_Types_Contro /** * Add Block Editor default rendering mode setting to the response. * - * @param WP_Post_Type $item Post type object. - * @param WP_REST_Request $request Request object. + * @param WP_Post_Type $item Post type object. + * @param WP_REST_Request $request Request object. * @return WP_REST_Response Response object. */ public function prepare_item_for_response( $item, $request ) {