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