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 c7fbc67 commit 37fa05aCopy full SHA for 37fa05a
src/design-library/init.php
@@ -333,6 +333,11 @@ public function get_design_library( $request ) {
333
334
public function get_disabled_blocks() {
335
$disabled_blocks = get_option( 'stackable_block_states' );
336
+
337
+ if ( $disabled_blocks == false ) {
338
+ return false;
339
+ }
340
341
$disabled_blocks = array_filter( $disabled_blocks, function ( $block_state ) { return $block_state == 3; } );
342
if ( count( $disabled_blocks ) ) {
343
$disabled_blocks = array_keys( $disabled_blocks );
0 commit comments