|
@@ 1743-1753 (lines=11) @@
|
| 1740 |
|
* Mirrors the checks made in Automattic\Jetpack\Status->is_development_mode |
| 1741 |
|
*/ |
| 1742 |
|
public static function show_development_mode_notice() { |
| 1743 |
|
if ( ( new Status() )->is_development_mode() ) { |
| 1744 |
|
$notice = sprintf( |
| 1745 |
|
/* translators: %s is a URL */ |
| 1746 |
|
__( 'In <a href="%s" target="_blank">Development Mode</a>:', 'jetpack' ), |
| 1747 |
|
Redirect::get_url( 'jetpack-support-development-mode' ) |
| 1748 |
|
); |
| 1749 |
|
|
| 1750 |
|
$notice .= ' ' . self::development_mode_trigger_text(); |
| 1751 |
|
|
| 1752 |
|
echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
| 1753 |
|
} |
| 1754 |
|
|
| 1755 |
|
// Throw up a notice if using a development version and as for feedback. |
| 1756 |
|
if ( self::is_development_version() ) { |
|
@@ 1763-1768 (lines=6) @@
|
| 1760 |
|
echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
| 1761 |
|
} |
| 1762 |
|
// Throw up a notice if using staging mode |
| 1763 |
|
if ( ( new Status() )->is_staging_site() ) { |
| 1764 |
|
/* translators: %s is a URL */ |
| 1765 |
|
$notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
| 1766 |
|
|
| 1767 |
|
echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
| 1768 |
|
} |
| 1769 |
|
} |
| 1770 |
|
|
| 1771 |
|
/** |