Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Commit

Permalink
Add revue to the block exclude list. (#70)
Browse files Browse the repository at this point in the history
* Add revue to the block exclude list.

* Fix WPCS issues

Co-authored-by: William Earnhardt <[email protected]>
  • Loading branch information
MikeHansenMe and earnjam authored Mar 3, 2020
1 parent fb108dc commit d2830f7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions inc/jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@ function mm_customize_jetpack_default_modules( $modules ) {
* @return array
*/
function mm_jetpack_unregister_mailchimp_block( $blocks ) {
$found = array_search( 'mailchimp', $blocks, true );
if ( false !== $found ) {
unset( $blocks[ $found ] );
$blocks_to_deregister = array(
'mailchimp',
'revue',
);
foreach ( $blocks_to_deregister as $block_slug ) {
$found = array_search( $block_slug, $blocks, true );
if ( false !== $found ) {
unset( $blocks[ $found ] );
}
}

return $blocks;
}

Expand Down

0 comments on commit d2830f7

Please sign in to comment.