@@ 1729-1739 (lines=11) @@ | ||
1726 | * Mirrors the checks made in Automattic\Jetpack\Status->is_development_mode |
|
1727 | */ |
|
1728 | public static function show_development_mode_notice() { |
|
1729 | if ( ( new Status() )->is_development_mode() ) { |
|
1730 | $notice = sprintf( |
|
1731 | /* translators: %s is a URL */ |
|
1732 | __( 'In <a href="%s" target="_blank">Development Mode</a>:', 'jetpack' ), |
|
1733 | Redirect::get_url( 'jetpack-support-development-mode' ) |
|
1734 | ); |
|
1735 | ||
1736 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1737 | ||
1738 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1739 | } |
|
1740 | ||
1741 | // Throw up a notice if using a development version and as for feedback. |
|
1742 | if ( self::is_development_version() ) { |
|
@@ 1749-1754 (lines=6) @@ | ||
1746 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1747 | } |
|
1748 | // Throw up a notice if using staging mode |
|
1749 | if ( ( new Status() )->is_staging_site() ) { |
|
1750 | /* translators: %s is a URL */ |
|
1751 | $notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
|
1752 | ||
1753 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1754 | } |
|
1755 | } |
|
1756 | ||
1757 | /** |