diff options
Diffstat (limited to 'themes/twentysixteen/inc/back-compat.php')
-rw-r--r-- | themes/twentysixteen/inc/back-compat.php | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/themes/twentysixteen/inc/back-compat.php b/themes/twentysixteen/inc/back-compat.php index c97940e0..bf1a8d08 100644 --- a/themes/twentysixteen/inc/back-compat.php +++ b/themes/twentysixteen/inc/back-compat.php @@ -38,8 +38,14 @@ add_action( 'after_switch_theme', 'twentysixteen_switch_theme' ); * @global string $wp_version WordPress version. */ function twentysixteen_upgrade_notice() { - $message = sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ); - printf( '<div class="error"><p>%s</p></div>', $message ); + printf( + '<div class="error"><p>%s</p></div>', + sprintf( + /* translators: %s: The current WordPress version. */ + __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), + $GLOBALS['wp_version'] + ) + ); } /** @@ -51,7 +57,11 @@ function twentysixteen_upgrade_notice() { */ function twentysixteen_customize() { wp_die( - sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ), + sprintf( + /* translators: %s: The current WordPress version. */ + __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), + $GLOBALS['wp_version'] + ), '', array( 'back_link' => true, @@ -69,7 +79,13 @@ add_action( 'load-customize.php', 'twentysixteen_customize' ); */ function twentysixteen_preview() { if ( isset( $_GET['preview'] ) ) { - wp_die( sprintf( __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), $GLOBALS['wp_version'] ) ); + wp_die( + sprintf( + /* translators: %s: The current WordPress version. */ + __( 'Twenty Sixteen requires at least WordPress version 4.4. You are running version %s. Please upgrade and try again.', 'twentysixteen' ), + $GLOBALS['wp_version'] + ) + ); } } add_action( 'template_redirect', 'twentysixteen_preview' ); |