Skip to content

Commit

Permalink
i18n: Use placeholder for minimum WordPress version notice (#13487)
Browse files Browse the repository at this point in the history
* i18n: Use placeholder for minimum WordPress version notice

* Collapse echo sprintf to printf

Co-Authored-By: aduth <andrew@andrewduthie.com>
  • Loading branch information
aduth authored Jan 24, 2019
1 parent 9d7846d commit a99bc7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ function is_gutenberg_page() {
*/
function gutenberg_wordpress_version_notice() {
echo '<div class="error"><p>';
_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 '</p></div>';

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

0 comments on commit a99bc7d

Please sign in to comment.