You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Display a version notice and deactivate the Gutenberg plugin.
24
+
* Display a WordPress version notice and deactivate the Gutenberg plugin.
25
25
*
26
26
* @since 0.1.0
27
27
*/
28
28
functiongutenberg_wordpress_version_notice() {
29
29
echo'<div class="error"><p>';
30
30
/* translators: %s: Minimum required version */
31
-
printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), GUTENBERG_MINIMUM_WP_VERSION );
31
+
printf(
32
+
__( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ),
* Display a PHP version notice and deactivate the Gutenberg plugin.
42
+
*
43
+
* @since 0.1.0
44
+
*/
45
+
functiongutenberg_php_version_notice() {
46
+
echo'<div class="error"><p>';
47
+
/* translators: %1$s: Minimum required PHP version, %2$s: current PHP version */
48
+
printf(
49
+
__( 'Gutenberg requires PHP %1$s or later to function. Your site is running PHP %2$s. Please update PHP or contact your host to enable PHP %1$s+.', 'gutenberg' ),
@@ -41,19 +62,27 @@ function gutenberg_wordpress_version_notice() {
41
62
*/
42
63
functiongutenberg_build_files_notice() {
43
64
echo'<div class="error"><p>';
44
-
_e( 'Gutenberg development mode requires files to be built. Run <code>npm install</code> to install dependencies, <code>npm run build</code> to build the files or <code>npm run dev</code> to build the files and watch for changes. Read the <a href="https://github.com/WordPress/gutenberg/blob/HEAD/docs/contributors/code/getting-started-with-code-contribution.md">contributing</a> file for more information.', 'gutenberg' );
65
+
_e(
66
+
'Gutenberg development mode requires files to be built. Run <code>npm install</code> to install dependencies, <code>npm run build</code> to build the files or <code>npm run dev</code> to build the files and watch for changes. Read the <a href="https://github.com/WordPress/gutenberg/blob/HEAD/docs/contributors/code/getting-started-with-code-contribution.md">contributing</a> file for more information.',
67
+
'gutenberg'
68
+
);
45
69
echo'</p></div>';
46
70
}
47
71
48
72
/**
49
-
* Verify that we can initialize the Gutenberg editor, then load it.
73
+
* Verify that we can initialize the Gutenberg editor, then load it.
50
74
*
51
75
* @since 1.5.0
52
76
*
53
-
* @global string $wp_version The WordPress version string.
54
-
*
77
+
* @global string $wp_version The WordPress version string.
0 commit comments