Changeset 59077
- Timestamp:
- 09/21/2024 02:39:52 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks.php
r59009 r59077 1691 1691 $parent_block = null; // At the top level, there is no parent block to pass to the callbacks; yet the callbacks expect a reference. 1692 1692 1693 $pre_callback_is_callable = is_callable( $pre_callback ); 1694 $post_callback_is_callable = is_callable( $post_callback ); 1695 1693 1696 foreach ( $blocks as $index => $block ) { 1694 if ( is_callable( $pre_callback )) {1697 if ( $pre_callback_is_callable ) { 1695 1698 $prev = 0 === $index 1696 1699 ? null … … 1703 1706 } 1704 1707 1705 if ( is_callable( $post_callback )) {1708 if ( $post_callback_is_callable ) { 1706 1709 $next = count( $blocks ) - 1 === $index 1707 1710 ? null
Note: See TracChangeset
for help on using the changeset viewer.