Skip to content

Commit f60f7bf

Browse files
authored
Merge pull request #267 from Jack-van-Bommel/Bugfix-for-wp-6.4
WP 6.4 bugfix, add extra args to callback
2 parents 80dcdb8 + 6b15de7 commit f60f7bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/clarkson-core-gutenberg-block-type.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function get_twig_template_path() {
7676
* @param string $content Block content.
7777
* @return string Rendered block type output.
7878
*/
79-
public function clarkson_render_callback( $attributes, $content ) {
79+
public function clarkson_render_callback( $attributes, $content, $block = null, $post_id = 0 ) {
8080
if ( file_exists( $this->get_twig_template_path() ) ) {
8181
$cc_template = Clarkson_Core_Templates::get_instance();
8282
$this->content_attributes = $attributes;
@@ -91,7 +91,7 @@ public function clarkson_render_callback( $attributes, $content ) {
9191
);
9292
}
9393
if ( is_callable( $this->original_render_callback ) ) {
94-
return (string) call_user_func( $this->original_render_callback, $attributes, $content );
94+
return (string) call_user_func( $this->original_render_callback, $attributes, $content, $block, $post_id );
9595
}
9696
return $content;
9797
}

0 commit comments

Comments
 (0)