Skip to content

Commit

Permalink
Mobile theme: remove filter unused in plugin (but still relevant to w…
Browse files Browse the repository at this point in the history
…pcom) that prevented it from loading.
  • Loading branch information
eliorivero committed Aug 18, 2016
1 parent e7cb60f commit 4d00127
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/minileven.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ function minileven_enabled( $wp_mobile_disable_option ) {
return true;
}

add_filter( 'option_wp_mobile_disable', 'minileven_enabled' );
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
add_filter( 'option_wp_mobile_disable', 'minileven_enabled' );
}

jetpack_load_minileven();

0 comments on commit 4d00127

Please sign in to comment.