We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2ac2cf commit 5d9e948Copy full SHA for 5d9e948
src/Gutenberg/Block_Type.php
@@ -23,7 +23,9 @@ class Block_Type extends \WP_Block_Type {
23
*/
24
public function __construct( $block_type, $args = array() ) {
25
parent::__construct( $block_type, $args );
26
- $this->original_render_callback = $this->render_callback;
+ if ( empty( $this->original_render_callback ) ) {
27
+ $this->original_render_callback = $this->render_callback;
28
+ }
29
$this->render_callback = array( $this, 'clarkson_render_callback' );
30
}
31
0 commit comments