From a99bc7d6ed9a1d9618436b8fbcb9b585e65cabd0 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Thu, 24 Jan 2019 13:29:56 -0500 Subject: [PATCH] i18n: Use placeholder for minimum WordPress version notice (#13487) * i18n: Use placeholder for minimum WordPress version notice * Collapse echo sprintf to printf Co-Authored-By: aduth --- gutenberg.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gutenberg.php b/gutenberg.php index 7e019de8b8a252..902e76675851b8 100644 --- a/gutenberg.php +++ b/gutenberg.php @@ -146,7 +146,8 @@ function is_gutenberg_page() { */ function gutenberg_wordpress_version_notice() { echo '

'; - _e( 'Gutenberg requires WordPress 5.0.0 or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ); + /* translators: %s: Minimum required version */ + printf( __( 'Gutenberg requires WordPress %s or later to function properly. Please upgrade WordPress before activating Gutenberg.', 'gutenberg' ), '5.0.0' ); echo '

'; deactivate_plugins( array( 'gutenberg/gutenberg.php' ) );