mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 12:00:03 +01:00
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
This commit is contained in:
parent
d455334864
commit
3da75346b3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user