diff --git a/.phpcs.xml b/.phpcs.xml index 4f73fb0ad4..ff512bfc91 100755 --- a/.phpcs.xml +++ b/.phpcs.xml @@ -42,6 +42,10 @@ + + + + diff --git a/src/Pods/Blocks/Types/Base.php b/src/Pods/Blocks/Types/Base.php index c17c63991a..a5d342d817 100644 --- a/src/Pods/Blocks/Types/Base.php +++ b/src/Pods/Blocks/Types/Base.php @@ -229,7 +229,7 @@ public function is_preloading_block() { */ public function should_preload_block( $attributes = [], $block = null ) { /** - * Allow filtering whether to preload the block. + * Allow filtering whether to preload the Pods block. * * @since 2.8.8 * @@ -238,7 +238,7 @@ public function should_preload_block( $attributes = [], $block = null ) { * @param WP_Block|null $block The WP_Block object or null if not provided. * @param Base $block_type The block type object (not WP_Block). */ - return (bool) apply_filters( 'pods_blocks_types_preload_block', true, $this ); + return (bool) apply_filters( 'pods_blocks_types_preload_block', true, $attributes, $block, $this ); } /**