[wp-trac] [WordPress Trac] #62716: Block Hooks: Absorb logic to set ignored hooked blocks post meta into `apply_block_hooks_to_content`

WordPress Trac noreply at wordpress.org
Wed Feb 19 16:38:44 UTC 2025


#62716: Block Hooks: Absorb logic to set ignored hooked blocks post meta into
`apply_block_hooks_to_content`
---------------------------------------+------------------------------
 Reporter:  Bernhard Reiter            |       Owner:  Bernhard Reiter
     Type:  defect (bug)               |      Status:  reopened
 Priority:  normal                     |   Milestone:  6.8
Component:  General                    |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-patch gutenberg-merge  |     Focuses:
---------------------------------------+------------------------------
Changes (by johnjamesjacoby):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Seeing this notice running PHP version 8.4:

 > Deprecated: apply_block_hooks_to_content_from_post_object(): Implicitly
 marking parameter $post as nullable is deprecated, the explicit nullable
 type must be used instead in /wp-includes/blocks.php on line 1163

 Recommend to remove the `WP_Post` type hint.

 (I had to double-check, but a search through the core code revealed we
 only use the `WP_Post $post` pattern in docs; not in function definition
 parameters.)

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62716#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list