From 21ba106dfbec2c446c6f4b19206152a43d7c9427 Mon Sep 17 00:00:00 2001 From: johnjamesjacoby Date: Wed, 19 Feb 2025 17:14:23 +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. Built from https://develop.svn.wordpress.org/trunk@59839 git-svn-id: http://core.svn.wordpress.org/trunk@59181 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 3268983534..58e03d0155 100644 --- a/wp-includes/blocks.php +++ b/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(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9f76f7c506..09b107ed46 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59838'; +$wp_version = '6.8-alpha-59839'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.