summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/class.jetpack-modules-list-table.php')
-rw-r--r--plugins/jetpack/class.jetpack-modules-list-table.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/jetpack/class.jetpack-modules-list-table.php b/plugins/jetpack/class.jetpack-modules-list-table.php
index 14d59866..6eaf68ea 100644
--- a/plugins/jetpack/class.jetpack-modules-list-table.php
+++ b/plugins/jetpack/class.jetpack-modules-list-table.php
@@ -82,7 +82,7 @@ class Jetpack_Modules_List_Table extends WP_List_Table {
<# var i = 0;
if ( data.items.length ) {
_.each( data.items, function( item, key, list ) {
- if ( item === undefined || 'search' == item.module ) return; #>
+ if ( item === undefined ) return; #>
<tr class="jetpack-module <# if ( ++i % 2 ) { #> alternate<# } #><# if ( item.activated ) { #> active<# } #><# if ( ! item.available ) { #> unavailable<# } #>" id="{{{ item.module }}}">
<th scope="row" class="check-column">
<# if ( 'videopress' !== item.module ) { #>
@@ -95,9 +95,9 @@ class Jetpack_Modules_List_Table extends WP_List_Table {
<# if ( item.configurable ) { #>
<span class='configure'>{{{ item.configurable }}}</span>
<# } #>
- <# if ( item.activated && 'vaultpress' !== item.module && item.available && 'videopress' !== item.module ) { #>
+ <# if ( item.activated && 'vaultpress' !== item.module && 'search' !== item.module && item.available && 'videopress' !== item.module ) { #>
<span class='delete'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=deactivate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.deactivate_nonce }}}"><?php _e( 'Deactivate', 'jetpack' ); ?></a></span>
- <# } else if ( item.available && 'videopress' !== item.module ) { #>
+ <# } else if ( item.available && 'videopress' !== item.module && 'search' !== item.module ) { #>
<span class='activate'><a href="<?php echo admin_url( 'admin.php' ); ?>?page=jetpack&#038;action=activate&#038;module={{{ item.module }}}&#038;_wpnonce={{{ item.activate_nonce }}}"><?php _e( 'Activate', 'jetpack' ); ?></a></span>
<# } #>
</div>