@@ 1707-1717 (lines=11) @@ | ||
1704 | * Mirrors the checks made in Automattic\Jetpack\Status->is_development_mode |
|
1705 | */ |
|
1706 | public static function show_development_mode_notice() { |
|
1707 | if ( ( new Status() )->is_development_mode() ) { |
|
1708 | $notice = sprintf( |
|
1709 | /* translators: %s is a URL */ |
|
1710 | __( 'In <a href="%s" target="_blank">Development Mode</a>:', 'jetpack' ), |
|
1711 | Redirect::get_url( 'jetpack-support-development-mode' ) |
|
1712 | ); |
|
1713 | ||
1714 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1715 | ||
1716 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1717 | } |
|
1718 | ||
1719 | // Throw up a notice if using a development version and as for feedback. |
|
1720 | if ( self::is_development_version() ) { |
|
@@ 1727-1732 (lines=6) @@ | ||
1724 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1725 | } |
|
1726 | // Throw up a notice if using staging mode |
|
1727 | if ( ( new Status() )->is_staging_site() ) { |
|
1728 | /* translators: %s is a URL */ |
|
1729 | $notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
|
1730 | ||
1731 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1732 | } |
|
1733 | } |
|
1734 | ||
1735 | /** |