Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions connectors/class-connector-jetpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ public function action_links( $links, $record ) {
$slug = current( $slug );
}

if ( Jetpack::is_module_active( $slug ) ) {
if ( \Jetpack::is_module_active( $slug ) ) {
if ( apply_filters( 'jetpack_module_configurable_' . $slug, false ) ) {
$links[ esc_html__( 'Configure', 'stream' ) ] = Jetpack::module_configuration_url( $slug );
$links[ esc_html__( 'Configure', 'stream' ) ] = \Jetpack::module_configuration_url( $slug );
}

$links[ esc_html__( 'Deactivate', 'stream' ) ] = wp_nonce_url(
Expand All @@ -152,7 +152,7 @@ public function action_links( $links, $record ) {
'action' => 'deactivate',
'module' => $slug,
),
Jetpack::admin_url()
\Jetpack::admin_url()
),
'jetpack_deactivate-' . sanitize_title( $slug )
);
Expand All @@ -163,16 +163,16 @@ public function action_links( $links, $record ) {
'action' => 'activate',
'module' => $slug,
),
Jetpack::admin_url()
\Jetpack::admin_url()
),
'jetpack_activate-' . sanitize_title( $slug )
);
}
} elseif ( Jetpack::is_module_active( str_replace( 'jetpack-', '', $record->context ) ) ) {
} elseif ( \Jetpack::is_module_active( str_replace( 'jetpack-', '', $record->context ) ) ) {
$slug = str_replace( 'jetpack-', '', $record->context ); // handling jetpack-comment anomaly

if ( apply_filters( 'jetpack_module_configurable_' . $slug, false ) ) {
$links[ esc_html__( 'Configure module', 'stream' ) ] = Jetpack::module_configuration_url( $slug );
$links[ esc_html__( 'Configure module', 'stream' ) ] = \Jetpack::module_configuration_url( $slug );
}
}
}
Expand Down