Skip to content

Commit

Permalink
Debugger: diplay the module list in Dev mode as well. (#6959)
Browse files Browse the repository at this point in the history
* Debugger: diplay the module list in Dev mode as well.

* Debugger: display full module list when connected or in dev mode.

@see https://github.com/Automattic/jetpack/pull/6959/files#r111185643
  • Loading branch information
jeherve authored and eliorivero committed Apr 24, 2017
1 parent c420b2c commit ae0ebc7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions class.jetpack-debugger.php
Expand Up @@ -298,13 +298,6 @@ public static function jetpack_debug_display_handler() {
__( '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">
Expand All @@ -314,6 +307,16 @@ public static function jetpack_debug_display_handler() {
); ?></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() ): ?>
Expand Down

0 comments on commit ae0ebc7

Please sign in to comment.