Make WordPress Core

Changeset 59839


Ignore:
Timestamp:
02/19/2025 05:12:28 PM (4 months ago)
Author:
johnjamesjacoby
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks.php

    r59838 r59839  
    11611161 * @return string The serialized markup.
    11621162 */
    1163 function apply_block_hooks_to_content_from_post_object( $content, WP_Post $post = null, $callback = 'insert_hooked_blocks' ) {
     1163function apply_block_hooks_to_content_from_post_object( $content, $post = null, $callback = 'insert_hooked_blocks' ) {
    11641164    // Default to the current post if no context is provided.
    11651165    if ( null === $post ) {
Note: See TracChangeset for help on using the changeset viewer.