@@ 1683-1693 (lines=11) @@ | ||
1680 | * Mirrors the checks made in Automattic\Jetpack\Status->is_development_mode |
|
1681 | */ |
|
1682 | public static function show_development_mode_notice() { |
|
1683 | if ( ( new Status() )->is_development_mode() ) { |
|
1684 | $notice = sprintf( |
|
1685 | /* translators: %s is a URL */ |
|
1686 | __( 'In <a href="%s" target="_blank">Development Mode</a>:', 'jetpack' ), |
|
1687 | Redirect::get_url( 'jetpack-support-development-mode' ) |
|
1688 | ); |
|
1689 | ||
1690 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1691 | ||
1692 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1693 | } |
|
1694 | ||
1695 | // Throw up a notice if using a development version and as for feedback. |
|
1696 | if ( self::is_development_version() ) { |
|
@@ 1703-1708 (lines=6) @@ | ||
1700 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1701 | } |
|
1702 | // Throw up a notice if using staging mode |
|
1703 | if ( ( new Status() )->is_staging_site() ) { |
|
1704 | /* translators: %s is a URL */ |
|
1705 | $notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
|
1706 | ||
1707 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1708 | } |
|
1709 | } |
|
1710 | ||
1711 | /** |