@@ 1833-1843 (lines=11) @@ | ||
1830 | * Mirrors the checks made in Automattic\Jetpack\Status->is_development_mode |
|
1831 | */ |
|
1832 | public static function show_development_mode_notice() { |
|
1833 | if ( ( new Status() )->is_development_mode() ) { |
|
1834 | $notice = sprintf( |
|
1835 | /* translators: %s is a URL */ |
|
1836 | __( 'In <a href="%s" target="_blank">Development Mode</a>:', 'jetpack' ), |
|
1837 | Redirect::get_url( 'jetpack-support-development-mode' ) |
|
1838 | ); |
|
1839 | ||
1840 | $notice .= ' ' . self::development_mode_trigger_text(); |
|
1841 | ||
1842 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1843 | } |
|
1844 | ||
1845 | // Throw up a notice if using a development version and as for feedback. |
|
1846 | if ( self::is_development_version() ) { |
|
@@ 1853-1858 (lines=6) @@ | ||
1850 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1851 | } |
|
1852 | // Throw up a notice if using staging mode |
|
1853 | if ( ( new Status() )->is_staging_site() ) { |
|
1854 | /* translators: %s is a URL */ |
|
1855 | $notice = sprintf( __( 'You are running Jetpack on a <a href="%s" target="_blank">staging server</a>.', 'jetpack' ), Redirect::get_url( 'jetpack-support-staging-sites' ) ); |
|
1856 | ||
1857 | echo '<div class="updated" style="border-color: #f0821e;"><p>' . $notice . '</p></div>'; |
|
1858 | } |
|
1859 | } |
|
1860 | ||
1861 | /** |