Skip to content

Commit

Permalink
Update projects/plugins/jetpack/class.jetpack.php
Browse files Browse the repository at this point in the history
Co-authored-by: Brad Jorsch <[email protected]>
  • Loading branch information
kraftbj and anomiex authored Sep 27, 2024
1 parent 29a65b6 commit 29a5a65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/class.jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -2234,7 +2234,7 @@ public function filter_default_modules( $modules ) {

// Special case to convert block setting to a block module.
$block_key = array_search( 'blocks', $modules, true );
if ( $block_key ) { // Only care if 'blocks' made it through the previous filters.
if ( $block_key !== false ) { // Only care if 'blocks' made it through the previous filters.
$block_option = get_option( 'jetpack_blocks_disabled', null );
if ( $block_option ) {
unset( $modules[ $block_key ] );
Expand Down

0 comments on commit 29a5a65

Please sign in to comment.