diff options
Diffstat (limited to 'plugins/jetpack/modules/widgets/search.php')
-rw-r--r-- | plugins/jetpack/modules/widgets/search.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/jetpack/modules/widgets/search.php b/plugins/jetpack/modules/widgets/search.php index 49cb9b7f..5cff02f4 100644 --- a/plugins/jetpack/modules/widgets/search.php +++ b/plugins/jetpack/modules/widgets/search.php @@ -13,7 +13,10 @@ use Automattic\Jetpack\Status; add_action( 'widgets_init', 'jetpack_search_widget_init' ); function jetpack_search_widget_init() { - if ( ! Jetpack::is_active() || ! Jetpack_Plan::supports( 'search' ) ) { + if ( + ! Jetpack::is_active() + || ( method_exists( 'Jetpack_Plan', 'supports' ) && ! Jetpack_Plan::supports( 'search' ) ) + ) { return; } @@ -312,7 +315,7 @@ class Jetpack_Search_Widget extends WP_Widget { $title = apply_filters( 'widget_title', $title, $instance, $this->id_base ); echo $args['before_widget']; - ?><div id="<?php echo esc_attr( $this->id ); ?>-wrapper" class="<?php + ?><div id="<?php echo esc_attr( $this->id ); ?>-wrapper" class="<?php echo Constants::is_true( 'JETPACK_SEARCH_PROTOTYPE' ) ? 'jetpack-instant-search-wrapper' : '' ?>"> <?php |