summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/class.jetpack-debugger.php')
-rw-r--r--plugins/jetpack/class.jetpack-debugger.php17
1 files changed, 10 insertions, 7 deletions
diff --git a/plugins/jetpack/class.jetpack-debugger.php b/plugins/jetpack/class.jetpack-debugger.php
index db588cfa..667a4598 100644
--- a/plugins/jetpack/class.jetpack-debugger.php
+++ b/plugins/jetpack/class.jetpack-debugger.php
@@ -298,13 +298,6 @@ class Jetpack_Debugger {
__( 'The primary connection is owned by <strong>%s</strong>\'s WordPress.com account.', 'jetpack' ),
esc_html( Jetpack::get_master_user_email() )
); ?></p>
- <?php if ( current_user_can( 'jetpack_manage_modules' ) ) {
- printf(
- '<p><a href="%1$s">%2$s</a></p>',
- Jetpack::admin_url( 'page=jetpack_modules' ),
- esc_html__( 'Access the full list of Jetpack modules available on your site.', 'jetpack' )
- );
- } ?>
</div>
<?php else : ?>
<div id="dev-mode-details">
@@ -314,6 +307,16 @@ class Jetpack_Debugger {
); ?></p>
</div>
<?php endif; ?>
+ <?php if (
+ current_user_can( 'jetpack_manage_modules' )
+ && ( Jetpack::is_development_mode() || Jetpack::is_active() )
+ ) {
+ printf(
+ '<p><a href="%1$s">%2$s</a></p>',
+ Jetpack::admin_url( 'page=jetpack_modules' ),
+ esc_html__( 'Access the full list of Jetpack modules available on your site.', 'jetpack' )
+ );
+ } ?>
</div>
<div id="contact-message" <?php if( ! isset( $_GET['contact'] ) ) {?> style="display:none" <?php } ?>>
<?php if ( self::is_jetpack_support_open() ): ?>