From 3da75346b3363655ad45f882c474b94974791827 Mon Sep 17 00:00:00 2001
From: John James Jacoby <johnjamesjacoby@git.wordpress.org>
Date: Wed, 19 Feb 2025 17:12:28 +0000
Subject: [PATCH] Block Hooks: Remove `WP_Post` type hint.

This change prevents a PHP deprecation notice in the new `apply_block_hooks_to_content_from_post_object()` function, introduced in r59838.

Fixes #62716.

git-svn-id: https://develop.svn.wordpress.org/trunk@59839 602fd350-edb4-49c9-b593-d223f7449a82
---
 src/wp-includes/blocks.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php
index 3268983534..58e03d0155 100644
--- a/src/wp-includes/blocks.php
+++ b/src/wp-includes/blocks.php
@@ -1160,7 +1160,7 @@ function apply_block_hooks_to_content( $content, $context = null, $callback = 'i
  *                               Default: 'insert_hooked_blocks'.
  * @return string The serialized markup.
  */
-function apply_block_hooks_to_content_from_post_object( $content, WP_Post $post = null, $callback = 'insert_hooked_blocks' ) {
+function apply_block_hooks_to_content_from_post_object( $content, $post = null, $callback = 'insert_hooked_blocks' ) {
 	// Default to the current post if no context is provided.
 	if ( null === $post ) {
 		$post = get_post();