From 0b8438a6d2667294ab5a2c8cbc89d1a76dba6e4f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 13 Dec 2019 21:27:05 +0000 Subject: [PATCH] I18N: Replace file names in translatable strings on Permalink Settings screen with placeholders. Props ramiy. Fixes #48863. Built from https://develop.svn.wordpress.org/trunk@46957 git-svn-id: http://core.svn.wordpress.org/trunk@46756 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-permalink.php | 18 +++++++++++++++--- wp-includes/version.php | 2 +- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 2b6e08101c..11ae50f0c9 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -151,12 +151,24 @@ if ( isset( $_POST['permalink_structure'] ) || isset( $_POST['category_base'] ) if ( $iis7_permalinks ) { if ( $permalink_structure && ! $using_index_permalinks && ! $writable ) { - $message = __( 'You should update your web.config now.' ); + $message = sprintf( + /* translators: %s: web.config */ + __( 'You should update your %s file now.' ), + 'web.config' + ); } elseif ( $permalink_structure && ! $using_index_permalinks && $writable ) { - $message = __( 'Permalink structure updated. Remove write access on web.config file now!' ); + $message = sprintf( + /* translators: %s: web.config */ + __( 'Permalink structure updated. Remove write access on %s file now!' ), + 'web.config' + ); } } elseif ( ! $is_nginx && $permalink_structure && ! $using_index_permalinks && ! $writable && $update_required ) { - $message = __( 'You should update your .htaccess now.' ); + $message = sprintf( + /* translators: %s: .htaccess */ + __( 'You should update your %s file now.' ), + '.htaccess' + ); } if ( ! get_settings_errors() ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 42c99f7aff..df23dc7728 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-46902'; +$wp_version = '5.4-alpha-46957'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.