@@ 108-110 (lines=3) @@ | ||
105 | __( 'Your site is connected to Jetpack.', 'jetpack' ) |
|
106 | ) |
|
107 | ); |
|
108 | } elseif ( ( new Status() )->is_development_mode() ) { |
|
109 | $result = self::skipped_test( $name, __( 'Jetpack is in Development Mode:', 'jetpack' ) . ' ' . Jetpack::development_mode_trigger_text(), __( 'Disable development mode.', 'jetpack' ) ); |
|
110 | } else { |
|
111 | $result = self::failing_test( |
|
112 | $name, |
|
113 | __( 'Jetpack is not connected.', 'jetpack' ), |
@@ 1713-1723 (lines=11) @@ | ||
1710 | * Mirrors the checks made in Automattic\Jetpack\Status->is_development_mode |
|
1711 | */ |
|
1712 | public static function show_development_mode_notice() { |
|
1713 | if ( ( new Status() )->is_development_mode() ) { |
|
1714 | $notice = sprintf( |
|
1715 | /* translators: %s is a URL */ |
|
1716 | __( 'In <a href="%s" target="_blank">Development Mode</a>:', 'jetpack' ), |
|
1717 | 'https://jetpack.com/support/development-mode/' |
|
1718 | ); |
|
1719 | ||
1720 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1721 | ||
1722 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1723 | } |
|
1724 | ||
1725 | // Throw up a notice if using a development version and as for feedback. |
|
1726 | if ( self::is_development_version() ) { |