summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/minileven.php')
-rw-r--r--plugins/jetpack/modules/minileven.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/minileven.php b/plugins/jetpack/modules/minileven.php
index 674e7cf7..9788fd5c 100644
--- a/plugins/jetpack/modules/minileven.php
+++ b/plugins/jetpack/modules/minileven.php
@@ -16,7 +16,7 @@
function jetpack_load_minileven() {
include dirname( __FILE__ ) . "/minileven/minileven.php";
- if ( get_option( 'wp_mobile_app_promos' ) != '1' )
+ if ( Jetpack_Options::get_option_and_ensure_autoload( 'wp_mobile_app_promos', '0' ) != '1' )
remove_action( 'wp_mobile_theme_footer', 'jetpack_mobile_app_promo' );
}
@@ -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();